Re:Reworder – A tale of learning Python and launching an app...
by mattdawson on Wednesday October 27, 2010 @12:25AM
(#1837248)
Or, if you only want to use these settings for python files, create a ~/.vim/ftplugin/python.vim file. Mine looks like this:
setlocal tabstop=4
setlocal softtabstop=4
setlocal shiftwidth=4
setlocal textwidth=80
setlocal smarttab
setlocal expandtab
setlocal smartindent
Re:Reworder – A tale of learning Python and launching an app...
by whimsy on Wednesday October 27, 2010 @05:27AM
(#1837884)
Today I learned...
Thanks.
It looks like ftplugin is a native vim extension - is that correct?
Re:Reworder – A tale of learning Python and launching an app...
by mattdawson on Thursday October 28, 2010 @12:45PM
(#1843627)
I'm a bit late in responding, but yes, it's a native vim extension. To make sure your plugins are loaded automatically, put
filetype plugin on
in your .vimrc.
:set tabstop=4
:set shiftwidth=4
:set expandtab