Practical tips for Vim under Linux

Source: Internet
Author: User

1. In edit mode: Ctrl+w undo the last edited content

2. In command mode: CTRL+W cursor switch to another window

3.vim-on file1 file2 ... The horizontal split screen, n is the number, represents divided into several screens, the command input succeeds, divides into the top and bottom multiple

Screen.

4.CTRL+W+J cursor moves to the bottom of the screen, ctrl+w+k the cursor to the top of the screen

Ctrl+w+h left cursor ctrl+w+l right move cursor

5.vim-on file1 file2 ... Vertical split screen, n is a number, is divided into several screens, command input successful, divided into the left and right multiple

Screen.

6. In the open file VSP filename Vertical Split-screen SP filename horizontal split screen

7. U Undo Last Command

8. Copy Multiple lines: V Enter visual mode press Y to copy p paste

Practical tips for Vim under Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.