Vim:vim usage Introduction.

Source: Internet
Author: User

Here is a summary of the usage of the shortcut keys that you encounter with vim in peacetime.

  1. How do I jump to the position of the last or next cursor?
    Ctrl ++ I #跳转到下一次光标的位置

  2. How to open another file in a vim program?
    : Open file1 file2 file3 ...
    : Bn #跳转到下一个文件
    : BP #跳转到上一个文件
    Ctrl + 6 #替代上面两个命令
    : BD #关闭当前的文件, cannot use: X or: Q, otherwise the current VIM program is closed.

  3. How do I open another file in a VIM program and display it in parallel? And some other related operations.
    : SP file1

  4. When we are working on a line, we feel the cursor position is a bit low, how to keep the cursor moving, the page up or down? (You can't turn the page so the cursor jumps to the first line of the next page.) )
    Ctrl + e    + y    #向下移动一行

Vim:vim usage Introduction.

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.