Skip to content

philip-clarke/vim-gf-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Goto File for Python

This is a simple utility to improve vim's standard goto file gf mapping in python. It can find most things, but not all.

It iterates through python's sys.path and looks for modules where one would typically expect to find them.

For example:

  • gf on os finds os.py.
  • gf on email.base64mime finds email/base64mime.py.
  • gf on sqlite3 finds sqlite3/__init__.py.

It does not find more complicated relationships like os.path.

I have a solution to find things like os.path, but the implementation could be considered unsafe. It would involve attempting to import it, and so depending on what one tries to find, it could be dangerous as the code would in effect be evaluated.

About

Plugin to enhance support for vim's 'gf' map in python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%