Perfect vim indentation settings

" ~/.vimrc
set smartinden
set autoindent
set noexpandtab
set tabstop=4
set shiftwidth=4    
set softtabstop=4

These settings finally make my vim behave properly.

 

Update

These are more, hmmm standard settings - think Ruby and Javascript

set smartinden
set autoindent
set expandtab
set tabstop=2
set shiftwidth=2    
set softtabstop=2

Loading mentions Retweet
Filed under  //   geeky   programming   vim  

Comments (0)

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    twitter


 

About

http://coffeesounds.com
Webdev, coffee drinker and all that