Vim Folding and Python
Automatic Folding for python files: http://vim.sourceforge.net/scripts/script.php?script_id=515
Not so easy to get working I think. Need the following in the .vimrc file:
- autocmd FileType python so ~/.vim/ftplugin/python_fold.vim
- filetype plugin on
- set tabstop=4
- set shiftwidth=4
- set expandtab
- set smarttab
Lines 3 to 6 should be used anyway when coding in python. Any tabs in the code needs to be replaced with spaces so that the plugin can work.