Saturday, February 4, 2012

Vim Setup for Python - Part 2

A quick follow up of my previous post:

http://blog.edmondcote.com/2013/10/vim-setup-for-python.html

Tagbar install and shortcut

1. Install ctags
2. Download Tagbar from http://www.vim.org/scripts/download_script.php?src_id=21362
3. Install Tagbar using vim -c 'so %' -c 'q' tagbar.vmb
4. Add nmap <F8> :TagbarToggle<CR> to your $HOME/.vimrc

Shortcut to fix indentation

http://vim.wikia.com/wiki/Fix_indentation

1. Add map <F7> mzgg=G`z<CR> to your $HOME/.vimrc

Tab-completion of Python code

1. Download latest version of Pydiction http://www.vim.org/scripts/script.php?script_id=850
2. Install Pydiction