VIM different indentation based on filetype

Dec 01 2012 Published under Linux,Programming

in .vimrc, add

filetype plugin indent on

create ~/.vim/after/ftplugin/python.vim with contents:

setlocal expandtab
setlocal shiftwidth=4
setlocal softtabstop=4

ref:
http://vim.wikia.com/wiki/Indenting_source_code

Comments Off

Comments are closed at this time.

Login