Vim Common commands

Source: Internet
Author: User

Insert mode
i ==== = = = ExitInsert mode
Cursor movement
H,j,k,l =←,↓,↑,→ctrl+f =next page (forward) Ctrl+b =Prev (backward) W=jumps to the beginning of the next word w=jumps to the beginning of the next word (blank delimited) e=jumps to the end of the next word e=jumps to the end of the next word (white space delimited) b=jumps to the beginning of the previous word b=jumps to the beginning of the previous word (blank delimited)0=jump to our line of clothes $=jump to the end of bank line^ =jump to the first non-whitespace character of the bank G_=Skip to our last non-whitespace character GG=jump to the first line G=Skip to last line [N]g=jump to nth row.=jump to the last edit place* =look down at the string where the current cursor is located #= Search up the string at the current cursor position
Edit
u = Undoctrl+r = redoswitchcase >> = indentline one column right <& Lt = indentline one column left = = auto-indent
Cut and paste
DD == = = = = = = = = = = Paste before the cursor position
Find
 for pattern  for   in inopposite direction
Exit
: w == = = exit, with changes not saved when exiting failed: Q! = Forced exit

Vim Common commands

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.