XPath Search


Ⅰ. 插件描述

XPath search plugin for Vim

Ⅱ. 基本信息

创建日期:  2011-03-20
使用用户:  24
Github星:  39
插件作者:  Dave Aitken

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'actionshrimp/xpath-search'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'actionshrimp/xpath-search'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'actionshrimp/xpath-search'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/actionshrimp/vim-xpath

Ⅳ. 文档说明

# 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

添加新评论