XPath search plugin for Vim
Python Vim script
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autoload
doc
plugin
python
tests
.gitignore
.travis.yml
README.md
requirements.txt
test.py

README.md

vim-xpath

A plugin to allow XPath search and evaluation on XML documents being edited in vim, using the python lxml library. Open an XML document, run the :XPathSearchPrompt command, and type an XPath to see it evaluated before your very eyes. Results appear in the vim location list.

Requires python, vim+python and the python lxml library to be installed. For full installation/usage instructions, see doc/xpath.txt (:help xpath.txt)

This is a complete rewrite of the old version of the xpath plugin. Features of the rewrite:

  • [✔] Proper namespace support
  • [✔] Use the loclist instead of a custom output buffer, for more standard vim behavior
  • [✔] Handle line numbers on large XML files correctly
  • Reworking of auto-completion functionality - TBC