Saner VIM Python editing options

Indenting Python with VIM is a nice read for those wanting to make their VIM options saner for Python editing. I followed it until the section Sexy edition and it worked nicely for Mandriva. I got a little stuck when I did it for Centos. Apparently, ftplugin is not activated and activating it in a running VIM session with

:filetype plugin indent on

doesn’t work. It must be enabled by editing ~/.vimrc and appending

filetype plugin indent on

to it. After which, the modifications worked as expected.

Leave a Reply