Vim script to help moving around in larger Python source files. It displays current class, method or function the cursor is placed in in the status line for every python file. It's more clever than Yegappan Lakshmanan's taglist.vim because it takes into account indentation and comments to determine what tag the cursor is placed on and from version 0.80 doesn't need exuberant ctags utility.
This is a fork of http:https://www.vim.org/scripts/script.php?script_id=435
Needs Vim built with Python support.
This plugin was superseded by taghelper.vim, which supports more languages.
I recommend a plugin manager like vim-plug:
Plug 'mgedmin/pythonhelper.vim'
Manual installation:
- copy
plugin/pythonhelper.vim
to~/.vim/plugin/
. - copy
pythonx/pythonhelper.py
to~/.vim/pythonx/
.
Add %{TagInStatusLine()}
to your 'statusline', e.g.
set statusline=%<%f\ %h%m%r\ %1*%{TagInStatusLine()}%*%=%-14.(%l,%c%V%)\ %P
Tagbar looks like a better-maintained alternative that supports not just Python, but other languages as well.
taghelper.vim is my rewrite of this plugin, which supports more languages (but not as many as tagbar) and doesn't need an external ctags utility (unlike tagbar).
pythonhelper.vim
was written by Michal Vitecek.
Licence: ???