Vim Advanced Learning and related configuration & plug-ins are readily recorded and ready for consolidation

Source: Internet
Author: User

First, learn the VIM native shortcut keys and related commands before adding plugins. (When used to record, temporarily will be chaotic, irregular sorting)

Ps:ctrl+s means stop output to terminal; The ctrl+q resumes to the terminal output stream. Using various shortcut keys may be mistakenly pressed to ctrl+s, when the button window is unresponsive, using ctrl+q recovery.

  1. Vim Auto Completion:

    Vi/vim Use advanced: Auto-complete (ctrl+x CTRL + Phase key, personal feeling mainly used: n the current file keyword, f file name, L whole line, D macro definition)

    (Http://easwy.com/blog/archives/advanced-vim-skills-auto-complete/PS: Spelling suggestion: ctrl+x ctrl+s Invalid)

  2. Partial operation

    1) Multi-file editing
    VI Multiple,: E
    : LS,: b number, BN (buffer next),: Rew,: args,: F (ctrl+g), ctrl+^ two file switch,: Number of rows R file name
    : Number of buffers to be deleted by BD

    2) CC CW 0 Header $ line end
    ^ Beginning of h,m,l screen, middle, end of line
    Ctrl+f down the screen, ctrl+b up the screen

    3) The man help page for the K Cursor flag field

    4) Split window
    : Split, Ctrl+w command combination j,k, close: Close a sub-window
    : VSP left and right sub-window ctrl+w, combination h,l
    Ctrl+w+w switch in turn

    5) Open the file in another tab
    : tabedit, GT switch

    6) '. Go back to the last modification point, '. Go back to the last modification row

Vim Advanced Learning and related configuration & plug-ins are readily recorded and ready for consolidation

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.