On 7/13/06, Gary Johnson <[EMAIL PROTECTED]> wrote:
A lot of this is already incorporated into the $VIMRUNTIME/ftplugin/python.vim plugin. For example, gf works fine with Python import statements.
Actually, that's my point. gf does _not_ work for Python imports that have a from clause. The paradigm is different from #include files, where the identifier under the cursor is enough information to find the file. In Python, you need the whole line. i.e.: from myproject.something.blar.blag import Bok if you put the cursor over Bok and hit gf, no dice. If the import line is rewritten as import myproject.something.blar.blag.Bok as Bok and you put the cursor over the second word, it works fine.
