vim - klagan/learning GitHub Wiki

plugins at vimawesome

Command mode

I activate command mode

Insert mode

[Start typing]

Last line mode

:q quit
:q! override quit (to ignore all changes)
:wq write then quit

Navigation

  • Arrow keys are valid way of navigating a document

  • Because a lot of platforms use different keyboard layouts, and we assume no mouse, the most compatible method is to use the command mode keys

H character back
L character forward
J up
K down
W beginning of word (forward)
E end of word (forward)
B backwards beginner of word (backwards)
0 back to beginning of line
$ end of the line
{ next paragraph
} previous paragraph
( next sentence
) previous sentence

Text manipulation

U undo last change
X delete character
DD delete line
DW delete word
D0 delete to beginning of line
D$ delete to end of line
⚠️ **GitHub.com Fallback** ⚠️