XPath search plugin for Vim
Python Vim script
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits ahead, 134 commits behind actionshrimp:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
plugin
syntax
xpath
README

README

XPath search (and incidental XML validation) plugin for vim.

When editing an XML file, you can use the :XPathSearchPrompt command to enter XPath search mode. Begin typing your xpath, and press TAB for context-sensitive xpath completion.
A new results window will pop up beneath the current window, with results matching your XPath, or if the XML file is not valid, the position of the validation error.
Hitting enter jumps to the results window, and then hitting enter on one of the results jumps to the line in your XML file that matched (or the position of the error).

Requires:
-Vim with python support
-python lxml library installed (ideally 2.7 or higher)

To install:
-Place all files into your vimXX or .vim directory
-Load the vimdoc with :helptags <path-to-your-vim-dir>/doc
Alternatively:
-Install as a bundle with the excellent pathogen plugin