Cheatsheet Vim A4
Cheatsheet Vim A4
1.2 Movement
Name Summary
Page down/up C-d / C-b; C-u / C-f
Forward/backward character l, h
Prevous/next line k, Ctrl-p; j, Ctrl-n
Move to next word w/W
Go to the top gg
Go to the bottom G
Go to beginning of the line B
Go to end of the line 0
1.3 Deletion
Name Summary
Delete current word d-w
Delete current line d-d
Delete to the bottom d-G
1.4 Changes
Name Summary
Undo the previous changes In view mode, u
Reload file from disk :e
1.5 Panel
Name Summary
Next panel C-h
Split panel :split
Vertical split panel :vsplit
Change panel size C-w >, C-w <
1.6 Blocks
Name Summary
Copy block shift+v, y
Paste block shift+v, p
Cut block shift+v, x
comment/uncomment block shift+v, gc
GitHub: https://github.com/dennyzhang/cheatsheet-vim-A4 1 of 2
Blog URL: https://cheatsheet.dennyzhang.com/cheatsheet-vim-A4 Updated: June 7, 2020
1.7 Files
Name Summary
Show current filename :echo @%
Open a new file :edit <filename>
GitHub: https://github.com/dennyzhang/cheatsheet-vim-A4 2 of 2