My .vimrc

18 01 2008

For those who are writing codes in C/C++ using Vim should find this .vimrc configuration file useful . The script should be self explanatory . If you have any question, I will try to answer. or :help should help you out. Put the following lines to your .vimrc and save .

set incsearch “when you start searching ESC /[string] it will start matching as soon as you type

set scrolloff=3 ” there would be atleast 3 lines from the top/bottom of the screen as you edit

set wildmode=longest,list ” ESC :![filename] TAB should give you a list of matched files

set ts=2 ” TAB would be of two char length

set expandtab “expand TAB char to spaces

set ai ” set auto indent

set cindent shiftwidth=4 “enable C style indent

set ignorecase

set smartcase ” together they help you search string ignoring case if you type in lower case

colo evening ” if you like a colorful editing experience


Actions

Information

2 responses

20 01 2008
Gaurav

Hey deka, happened to read your blog. Found the current post very helpful. Keep up the good work!! :)
-gaurav

19 06 2008
Diffidence

Somehow i missed the point. Probably lost in translation :) Anyway … nice blog to visit.

cheers, Diffidence!!!

Leave a comment