.vimrc config file
Here is my vimrc file.Before vim starts, it reads the configuration file .vimrc (if available – not present by default) present in the root folder. vim is heavily customizable and you can even write some scripts within this config file. This very attribute makes it really the best editor for most purposes, specially for programming and scripting purposes. Lets tweak it a bit and make it more happening!
To create or read the existing one do this
$ vim ~/.vimrc
Its advisable to have the package vim-full
To have a look at my .vimrc file visit this url :
http://home.iitb.ac.in/~zubin_mehta/vimrc.txt
Save this txt file and rename it as .vimrc and place it in your root folder.
To get an explanation on each of the line written in the config file visit the following Reference : http://vimdoc.sourceforge.net/htmldoc/help.html
PS : i will elaborate more on some of the features mentioned in the vimrc and also how to create your own colorscheme for your vim editor.
Kartik Mohta said,
July 21, 2008 at 12:16 pm
Instead of just “filetype on”, do a “filetype plugin indent on”
An overview from VIM help:
command detection plugin indent
:filetype on on unchanged unchanged
:filetype off off unchanged unchanged
:filetype plugin on on on unchanged
:filetype plugin off unchanged off unchanged
:filetype indent on on unchanged on
:filetype indent off unchanged unchanged off
:filetype plugin indent on on on on
:filetype plugin indent off unchanged off off
(and there has to be a better way to format tables in comments!)
zubin mehta said,
September 29, 2008 at 9:11 am
yeah that might just help.