Vim Summary Summary

Source: Internet
Author: User

1. Basic

1.1, first, learn to move

On-screen movement:

Up and down around H,j,k,l,

Screen position h,m,l,

Roll Screen Zz,zt,zb

Deterministic movement within the entire article:

Text first GG, end G, nth row ng

Efficient movement within the entire article:

Corresponding brackets%, same next *, same as Previous #,

Search/pattern, Next n

Move within a single line:

0,^,$,g_,

E,w,e,w,

Fc,fc,tc,tc

1.2, then, learn to delete and change

Add: I,a,o,o

Deletion: X,DW,DD

Change: CW

Paste: P,p

1.3.: Enter ed mode

Save to Exit wq,q!,

1.4.

Undo U, Redo Ctrl+r

Repeat the last action.

2. Advanced

2.1 n<command>

2.2<start position><command><end position>

2.3 Enter visualization mode v,ctrl+v,

2.4 Split screen: split,:vsplit, switch back and forth ctr+

3.

Reference:

Concise Vim Training Guide http://coolshell.cn/articles/5426.html

(not to be continued)

Vim Summary Summary

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.