setup vim so that it searches the python path
Posted
by
Dave
on Super User
See other posts from Super User
or by Dave
Published on 2013-10-28T17:07:23Z
Indexed on
2013/10/28
21:57 UTC
Read the original article
Hit count: 225
I'm using vim as my primary editor with python files; I'd like to be able to easily open python files.
As an example: I'm looking at a particular module A.py
, in it I see the line import funkyModule
, I want to edit that module so I just type in the command :pyed funkyModule
and the pyed
vim-command automatically finds the file funkyModule.py
(or funkyModule/__init__.py
) where ever it occurs on the python path.
This capability is modeled on the capabilities if the ipython
shell, where
In [#]: edit funkyModule
does what I've just described.
© Super User or respective owner