September 01, 2008

My .vimrc

Well, promised myself long back that i will post technical articles here as well but have been really lazy for quite sometime now. It hits me again and again because i had to look for similar things multiple times. So here i make yet another promise to myself to post those stuffs which i can re-use again and again. Hope some of this would be helpful to others as well.. ahh someday!

This one is my .vimrc settings i configured couple of days ago. Comments inlined for better reading :-)

"---------begins here----------
" To enable syntax highlighting
:syntax enable

" To enable a color scheme that is pleasant to eyes
:colorscheme delek

" To convert tabs to spaces; use :retab to convert all tabs to current
" settings
set tabstop=4
set shiftwidth=4
set expandtab

" To catch hiding tabs
set list listchars=tab:»·,trail:··

" makes the backspace key treat the four spaces like a tab (so one backspace
" goes back a full 4 spaces)
set softtabstop=4

set title

" fold lines with similar indent (collapse feature) or manually in insert mode
" using CTRL-T (indent) CTRL-D (dedent)
"set foldmethod=indent
"---------ends here----------

PS: I will keep updating this post as and while i explore cooler stuffs on VIM. As of now i'm loving it.. :)

No comments: