Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 697 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 697 Bytes

vim-python-dot-finder

A simple Python mapping for querying the dot-separated paths from the user's cursor.

class SomeClass(object):
    def get_thing(self):
        # ...
        stuff  # <-- cursor located here
        # ...

Just call this function:

:echo GetCurrentDotPath()

And it will return "SomeClass.get_thing".

About Packaging

This Vim plugin was built specifically to work with Rez packages. If the Vim function is run within a Rez package, you'll get the full Python import, up until wherever you've placed the Rez package.py file.

Running Tests

Run this

PYTHONPATH=$PWD/pythonx python -m unittest discover

And all tests should pass.