Last week I started learning VIM, the text editor for programmers. VIM stands for VI Improved, but the dictionary says vim also means power, force, energy. From my very limited experience, I can assure you that learning vim is not quick and easy, but it promises great rewards once you’ve become accustomed to it. I’ve just grasped the basics these days, and whichever way I look I see more and more to learn. Here’s a list of links I’ve found useful, in case you want to make your first step towards conquering vim ;)
- Efficient Editing With vim, by Jonathan McPherson
- vim Cheat Sheets (divided by levels of complexity – like lessons)
- Top 10 things a Vi user needs to know about Vim (but just as good if you’re not a Vi user)
- Essential vim (a collection of shortcuts and commands)
Some of the nicest vim features I’ve discovered so far:
:makecommand (if you have a Makefile in the current directory you needn’t compile your program manually anymore. Best of all, you can also map this action to a key like F9, and accelerate the whole process!)
- Syntax highlighting (activated by the
:syntax oncommand, and fine-tuned for my tastes by another
- Automatic C-style indentation (activated by
:set cindent, it forces you to format your programs nicely even if you don’t want to!)
If you’re new to vim, you might also appreciate:
:help) command launches vim’s built-in help system. It contains everything you’ll ever want to know, but requires some patience to navigate.
vimtutor, a script meant to teach you vim. It should already be installed on your system, if you have vim.
Here’s my first ~/.vimrc. Surely I will update it as vim grows on me.