When doing some simple programming, I like to use the Vim editor instead of using a full-blown IDE. It’s a good editor but I want to use it more efficiently. Some of the things I customise for myself are:
These settings are saved in a file named .vimrc in each user’s home directory. Simply save the vi commands in this file to have your customisation. But remember to remove the semicolons. Below is my .vimrc contents to achieve my customisation.
set tabstop=4
set autoindent
colorscheme wombat
wombat is a colour scheme file which I saved in the directory /usr/share/vim/vim71/colors/.
P.S. While searching for some help on setting the file types in Vim, I found this page in wikibooks.org that describes the tips a programmer would use. It’s unbelievably useful. Do check it out if you use vi editor!
Another page with some useful tips is http://tips.webdesign10.com/general/vim
Tags: tips