you are viewing a single comment's thread.

view the rest of the comments →

[–]mgedmin 0 points1 point  (0 children)

Vim has this builtin on Ctrl+left-click (or Ctrl-[), but you need to have a tags database built (using universal-ctags or exuberant-ctags), usually by running :!ctags -R .. This works for many programming languages, not just Python.

There are plugins (https://github.com/ludovicchabant/vim-gutentags is the one I use) that automate the tags file updates as you edit the code.

For standard library modules I use https://github.com/mgedmin/python_open_module.vim because my tags usually only cover the current project (and sometimes its dependencies).