- Install ctags
- Configure ctags.
Add to ~/.ctags the following, one option per line:- --python-kinds=-i
- optional: --exclude=<partial names of bad files/directories>. e.g. --exclude=*/build/* to exclude all files inside 'build/' directories
- Add a cron to rebuild tags, for instance:
1 * * * * ctags -R -o ~/mytags ~/src - Configure vim:
add to ~/.vimrc: :set tags=~/mytags - Use Vim:
- vim -t <tag name> to open vim straight on the tag
- Ctrl+] to jump to tag when over a word
- Ctrl+T to pop back
- :tselect or :stselect to open
- :tnext, :tprev to go to next/prev tag finding
- :help tags for more
Thursday, February 2, 2017
Configuring ctags for Python and Vim
http://www.held.org.il/blog/2011/02/configuring-ctags-for-python-and-vim/
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment