Skip to content

Instantly share code, notes, and snippets.

@mrkschan
Created November 15, 2012 07:15
Show Gist options
  • Save mrkschan/4077171 to your computer and use it in GitHub Desktop.
Save mrkschan/4077171 to your computer and use it in GitHub Desktop.
vim smartindent config for Python
" Smart indenting for Python
autocmd FileType python set smartindent
autocmd FileType python set cinwords=if,elif,else,for,while,try,except,finally,def,class
autocmd FileType python set tabstop=4
autocmd FileType python set shiftwidth=4
autocmd FileType python set expandtab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment