Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

vim file type plugin to run an xquery against a MarkLogic server

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc
Octocat-spinner-32 ftplugin
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 xq.xqy
Octocat-spinner-32 zip.sh
README.md

xqmarklogic

Vim filetype plugin enables you to run xqueries files against a MarkLogic server, it displays the results in a separate window.

Requirements

vim (obviously), MarkLogic (probably obvious), and curl (not so obvious)

Installation

Can be broken into two steps. Setup vim and setup MarkLogic

For setting up vim I'd suggest either

or

Both have good documentation and make it far easier to setup plugins.

For pathogen put the plugin in your bundle directory and in vim run

:Helptags

For vundle add this line to your vimrc

Bundle 'coledarr/vim-xqmarklogic'

To manually install:

  1. copy vim-xqmarklogic/ftplugin/xquery.vim to ~/.vim/ftplugin (or ~\vimfiles\ftplugin)
  2. copy vim-xqmarklogic/doc/xqmarklogic.txt to ~/.vim/ftplugin (or ~\vimfiles\ftplugin)
  3. In vim run:

    :helptags

For more details and setting up MarkLogic run this in vim once you've done the above:

:help xqmarklogic-install

It works well with xqyeryvim source:xqueryvim

If you'd like to run XPath in vim see vim-xpath source:vim-xpath

Something went wrong with that request. Please try again.