forked from dlam26/xqueryvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HOWTOINSTALL
32 lines (20 loc) · 1.73 KB
/
HOWTOINSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
-description-
This plugin configures Vim to be a little more efficient at editing XQuery...!
It also sets up Exuberant Ctags for XQuery, since it's not one of languages it supports out-of-the-box.
ftplugin/xquery.vim:
-Makes keys like gd and <C-]> and i_CTRL-p work better when editing XQuery files by temporarily adding the hyphen - to the 'iskeyword' option
-Sets options useful when editing XQuery (like 'set comments')
-Sets a few variables to make matchit.vim and taglist.vim work better with XQuery
xquerycomplete.vim:
-Completes W3C XQuery 'fn' functions, types and keywords.
-Also completes any MarkLogic functions I could find at... http://developer.marklogic.com/pubs/4.1/apidocs/All.html
indent/xquery.vim:
- Attempts to indent according to the 'XQuery Style Conventions' here: http://xqdoc.org/xquery-style.html
- Typing out certain keywords (like for/let/where/order/return/else) will automatically indent to the correct location when typed out.
-install details-
1. Copy ftplugin/xquery.vim to $HOME/.vim/ftplugin or $HOME/vimfiles/ftplugin or $VIM/vimfiles/ftplugin (and set 'filetype plugin on')
2. Copy autoload/xquerycomplete.vim to $HOME/.vim/autoload or $HOME/vimfiles/autoload or $VIM/vimfiles/autoload
3. Copy indent/xquery.vim to $HOME/.vim/indent/ or $HOME/vimfiles/indent or $VIM/vimfiles/indent (and set 'filetype indent on')
4. Copy _ctags to $HOME/.ctags (or one of the alternatives at http://ctags.sourceforge.net/ctags.html#FILES)
5. Download Exuberant Ctags and put it on your path. Use 'ctags -R' to build a tags file for your XQuery source folder
The steps are mostly optional, so if you don't want automatic indentation for instance, you can just skip step #3.