[CHEATSHEET] Vim cheat sheet
Vim ( Vi IMproved ) has become my text editor of choice both at home and at work for using when I need to quickly modify config files. Although I've been using it for a few years, I have never taken advantage of most of the features. I decided to compile a cheatsheet of many of the useful commands, so that I can get more efficient use out of Vim.
The idea of this cheat sheet is to print it out and keep it on your desk for quick referral when using Vim. The cheat sheet is in PDF format and can be downloaded here.
To make sure that all of the features in the cheat sheet work correctly, make sure you have the full, enhanced version of Vim installed. On Red Hat and Fedora systems, you need to install the vim-enhanced rpm. On Ubuntu and Debian systems, the vim and vim-common packages should be installed.
The first page is a reference to commands involved with:
- cursor movement
- undo & redo
- deletion
- text insertion
- copying
- pasting
- pattern searching
- replacing text
The second page of the cheat sheet provides a reference to commands involved with:
- files (opening and writing)
- split-screen editing
- working with multiple files
- working in visual mode
- miscellaneous
Download the PDF of this cheat sheet for printing on A4 paper.
Download the PDF of this cheat sheet for printing on US Letter size paper.
If you like this cheat sheet, but find that you want to add more to it or modify it in any way, feel free to take a copy of the source file and change it as you wish.
Download
the .odg source file (for use in OpenOffice Draw).