aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2013-04-19 01:25:35 +0200
committerPeter Odding <peter@peterodding.com>2013-04-19 01:25:35 +0200
commitebe2ba9aedafeac5ffc19b52e9f6cf0d994e5726 (patch)
tree8eb58ba94fcada548bae09fd3029af1470a3e0a8 /README.md
parentdc05bed00f3685ad99f0faa785cb91fa1c7ff0f7 (diff)
downloadvim-easytags-ebe2ba9aedafeac5ffc19b52e9f6cf0d994e5726.tar.gz
Move g:easytags_languages documentation to README.md
Integration of pull request #40: https://github.com/xolox/vim-easytags/pull/40
Diffstat (limited to 'README.md')
-rw-r--r--README.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/README.md b/README.md
index a7b3d24..2e5b1bd 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,26 @@ The plug-in will try to determine the location where Exuberant Ctags is installe
:let g:easytags_cmd = '/usr/local/bin/ctags'
+If you rely entirely on language-specific configuration and don't have a general ctags program, set this to the empty string.
+
+### The `g:easytags_languages` option
+
+Exuberant Ctags supports many languages and can be extended via regular expression patterns, but for some languages separate tools with ctags-compatible output exist (e.g. [jsctags] [jsctags] for Javascript). To use these, the executable and its arguments must be configured:
+
+ let g:easytags_languages = {
+ \ 'language': {
+ \ 'cmd': g:easytags_cmd,
+ \ 'args': [],
+ \ 'fileoutput_opt': '-f',
+ \ 'stdout_opt': '-f-',
+ \ 'recurse_flag': '-R'
+ \ }
+ \}
+
+Each key is a special language definition. The key is in the notation of ctags in lowercase; you still need to use `xolox#easytags#map_filetypes()` to map this to Vim's filetypes, if necessary.
+
+Above snippets shows the defaults; you only need to specify options that differ.
+
### The `g:easytags_file` option
As mentioned above the plug-in will store your tags in `~/.vimtags` on UNIX and `~/_vimtags` on Windows. To change the location of this file, set the global variable `g:easytags_file`, e.g.:
@@ -278,6 +298,7 @@ This software is licensed under the [MIT license](http://en.wikipedia.org/wiki/M
[exctags]: http://ctags.sourceforge.net/
[hlinks]: http://en.wikipedia.org/wiki/Hard_link
[ide]: http://en.wikipedia.org/wiki/Integrated_development_environment
+[jsctags]: https://npmjs.org/package/jsctags
[messages]: http://vimdoc.sourceforge.net/htmldoc/message.html#:messages
[neocomplcache]: http://www.vim.org/scripts/script.php?script_id=2620
[shell]: http://peterodding.com/code/vim/shell/