[BangPypers] BangPypers Digest, Vol 8, Issue 15

Kiran Jonnalagadda jace at pobox.com
Mon May 5 12:57:40 CEST 2008


On 02-May-08, at 11:46 AM, Biju Chacko wrote:

> If you are a vim user you can add:
>
> set expandtabs
>
> to your .vimrc to ensure that vim indents with only spaces.

I'd recommend being more elaborate:

set et    " Expand tabs
set ai    " Auto-indent
set sw=4  " Indent to 4 spaces
set ts=8  " Treat tabs as 8 columns
set si    " Smart indent
set sta   " Smart tab key handling
syn on    " Make syntax visible

" Make tabs visible if you're running gvim
if has("gui_running")
     set lcs=tab:»·,trail:·,extends:»,precedes:«
endif


More information about the BangPypers mailing list