0% found this document useful (0 votes)
199 views2 pages

Cheatsheet Vim A4

This document is a Vim cheat sheet that provides an overview of basic Vim commands for movement, editing, panels, blocks, and files. It includes the PDF and blog URL, lists basic usage commands for help, paste mode, and password protection. Sections cover movement, deletion, changes, panels, blocks, and files. It notes the cheat sheet is available under an MIT license on GitHub.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
199 views2 pages

Cheatsheet Vim A4

This document is a Vim cheat sheet that provides an overview of basic Vim commands for movement, editing, panels, blocks, and files. It includes the PDF and blog URL, lists basic usage commands for help, paste mode, and password protection. Sections cover movement, deletion, changes, panels, blocks, and files. It notes the cheat sheet is available under an MIT license on GitHub.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Blog URL: https://cheatsheet.dennyzhang.

com/cheatsheet-vim-A4 Updated: June 7, 2020

1 Vim CheatSheet Tools


• PDF Link: cheatsheet-vim-A4.pdf, Category: tools
• Blog URL: https://cheatsheet.dennyzhang.com/cheatsheet-vim-A4
• Related posts: Shell CheatSheet, #denny-cheatsheets

File me Issues or star this repo.

1.1 Basic Usage


Name Summary
Show help :help
Enter to paste mode :set paste
Put vim to background/foreground C-z; fg
Password protecting file vim +X filename
Install enhanced vim yum install vim-enhance

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>

1.8 More Resources


License: Code is licensed under MIT License.

GitHub: https://github.com/dennyzhang/cheatsheet-vim-A4 2 of 2

You might also like