Tuesday, April 28, 2009

Correcting VIM indention, Python

First off, get your VIM editor up to speed.


Check that your filetype and settings are correct...


filetype detection:ON plugin:ON indent:ON 1,0-1 Top

Now issue the magic VIM command to re-tab the entire file.


Or here's an alternative that converts all tabs to spaces

:set tabstop=4
:set shiftwidth=4
:set expandtab

No comments: