2010-01-10

vim 里让 python 文件扩展 Tab 为四个空格

 
 

Sent to you by l5g via Google Reader:

 
 


~/.vimrc 里添加了
" 让 python 展开Tab,显示行号,缩进4, Tab宽度4 autocmd FileType python set et nu sw=4 ts=4

就是 vim 里只让 python 文件用 4 个空格缩进,而不是 Tab。
对其他文件不影响

 
 

Things you can do from here:

 
 

No comments:

Post a Comment