Skip to content

Commit ebe2ba9

Browse files
committed
Move g:easytags_languages documentation to README.md
Integration of pull request #40: #40
1 parent dc05bed commit ebe2ba9

3 files changed

Lines changed: 70 additions & 46 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,26 @@ The plug-in will try to determine the location where Exuberant Ctags is installe
5454

5555
:let g:easytags_cmd = '/usr/local/bin/ctags'
5656

57+
If you rely entirely on language-specific configuration and don't have a general ctags program, set this to the empty string.
58+
59+
### The `g:easytags_languages` option
60+
61+
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:
62+
63+
let g:easytags_languages = {
64+
\ 'language': {
65+
\ 'cmd': g:easytags_cmd,
66+
\ 'args': [],
67+
\ 'fileoutput_opt': '-f',
68+
\ 'stdout_opt': '-f-',
69+
\ 'recurse_flag': '-R'
70+
\ }
71+
\}
72+
73+
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.
74+
75+
Above snippets shows the defaults; you only need to specify options that differ.
76+
5777
### The `g:easytags_file` option
5878

5979
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
278298
[exctags]: http://ctags.sourceforge.net/
279299
[hlinks]: http://en.wikipedia.org/wiki/Hard_link
280300
[ide]: http://en.wikipedia.org/wiki/Integrated_development_environment
301+
[jsctags]: https://npmjs.org/package/jsctags
281302
[messages]: http://vimdoc.sourceforge.net/htmldoc/message.html#:messages
282303
[neocomplcache]: http://www.vim.org/scripts/script.php?script_id=2620
283304
[shell]: http://peterodding.com/code/vim/shell/

autoload/xolox/easytags.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Last Change: April 19, 2013
44
" URL: http://peterodding.com/code/vim/easytags/
55

6-
let g:xolox#easytags#version = '2.9'
6+
let g:xolox#easytags#version = '3.0'
77

88
" Public interface through (automatic) commands. {{{1
99

doc/easytags.txt

Lines changed: 48 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@ Contents ~
1212
2. The |:HighlightTags| command
1313
4. Options |easytags-options|
1414
1. The |g:easytags_cmd| option
15-
2. The |g:easytags_file| option
16-
3. The |g:easytags_dynamic_files| option
17-
4. The |g:easytags_by_filetype| option
18-
5. The |g:easytags_always_enabled| option
19-
6. The |g:easytags_on_cursorhold| option
20-
7. The |g:easytags_updatetime_min| option
21-
8. The |g:easytags_updatetime_autodisable| option
22-
9. The |g:easytags_auto_update| option
23-
10. The |g:easytags_auto_highlight| option
24-
11. The |g:easytags_autorecurse| option
25-
12. The |g:easytags_include_members| option
26-
13. The |g:easytags_resolve_links| option
27-
14. The |g:easytags_suppress_ctags_warning| option
28-
15. The |g:easytags_ignored_syntax_groups| option
15+
2. The |g:easytags_languages| option
16+
3. The |g:easytags_file| option
17+
4. The |g:easytags_dynamic_files| option
18+
5. The |g:easytags_by_filetype| option
19+
6. The |g:easytags_always_enabled| option
20+
7. The |g:easytags_on_cursorhold| option
21+
8. The |g:easytags_updatetime_min| option
22+
9. The |g:easytags_updatetime_autodisable| option
23+
10. The |g:easytags_auto_update| option
24+
11. The |g:easytags_auto_highlight| option
25+
12. The |g:easytags_autorecurse| option
26+
13. The |g:easytags_include_members| option
27+
14. The |g:easytags_resolve_links| option
28+
15. The |g:easytags_suppress_ctags_warning| option
29+
16. The |g:easytags_ignored_syntax_groups| option
2930
5. Faster syntax highlighting using Python |easytags-faster-syntax-highlighting-using-python|
3031
1. The |g:easytags_python_enabled| option
3132
2. The |g:easytags_python_script| option
@@ -169,30 +170,31 @@ where you've installed Exuberant Ctags, e.g.:
169170
>
170171
:let g:easytags_cmd = '/usr/local/bin/ctags'
171172
172-
If you entirely rely on language-specific configuration and don't have a
173+
If you rely entirely on language-specific configuration and don't have a
173174
general ctags program, set this to the empty string.
174175

175176
-------------------------------------------------------------------------------
176177
The *g:easytags_languages* option
177178

178-
The Exuberant Ctags tools supports many languages and can be extended via
179-
regexp patterns, but for some languages, separate tools with ctags-compatible
180-
output exist (e.g. jsctags for Javascript). To use these, the executable and
181-
its arguments must be configured. >
182-
179+
Exuberant Ctags supports many languages and can be extended via regular
180+
expression patterns, but for some languages separate tools with
181+
ctags-compatible output exist (e.g. jsctags [9] for Javascript). To use these,
182+
the executable and its arguments must be configured:
183+
>
183184
let g:easytags_languages = {
184185
\ 'language': {
185-
\ 'cmd': g:easytags_cmd,
186-
\ 'args': [],
187-
\ 'fileoutput_opt': '-f',
188-
\ 'stdout_opt': '-f-',
189-
\ 'recurse_flag': '-R'
186+
\ 'cmd': g:easytags_cmd,
187+
\ 'args': [],
188+
\ 'fileoutput_opt': '-f',
189+
\ 'stdout_opt': '-f-',
190+
\ 'recurse_flag': '-R'
190191
\ }
191192
\}
192193
193-
Each key is a special language definition. The key is in the notation of
194-
ctags in lowercase; you still need to use xolox#easytags#map_filetypes() to
195-
map this to Vim's filetypes, if necessary.
194+
Each key is a special language definition. The key is in the notation of ctags
195+
in lowercase; you still need to use 'xolox#easytags#map_filetypes()' to map
196+
this to Vim's filetypes, if necessary.
197+
196198
Above snippets shows the defaults; you only need to specify options that
197199
differ.
198200

@@ -300,7 +302,7 @@ this option (number of milliseconds).
300302
The *g:easytags_updatetime_autodisable* option
301303

302304
Other plug-ins may lower the |'updatetime'| value in certain contexts, e.g.
303-
insert mode in the case of the neocomplcache [9] plug-in. By setting this
305+
insert mode in the case of the neocomplcache [10] plug-in. By setting this
304306
option to 1 (true) you can configure the easytags plug-in so that it doesn't
305307
give warnings about the updatetime option but instead skip updating and
306308
highlighting while the updatetime is set too low. When the updatetime is
@@ -372,14 +374,14 @@ your vimrc script, a file type plug-in, etc.):
372374
-------------------------------------------------------------------------------
373375
The *g:easytags_resolve_links* option
374376

375-
UNIX has symbolic links [10] and hard links [11], both of which conflict with
377+
UNIX has symbolic links [11] and hard links [12], both of which conflict with
376378
the concept of having one unique location for every identifier. With regards
377379
to hard links there's not much anyone can do, but because I use symbolic links
378380
quite a lot I've added this option. It's disabled by default since it has a
379381
small performance impact and might not do what unknowing users expect it to:
380382
When you enable this option the plug-in will resolve symbolic links in
381383
pathnames, which means your tags file will only contain entries with canonical
382-
pathnames [12]. To enable this option (which I strongly suggest doing when you
384+
pathnames [13]. To enable this option (which I strongly suggest doing when you
383385
run UNIX and use symbolic links) execute the following Vim command:
384386
>
385387
:let g:easytags_resolve_links = 1
@@ -463,11 +465,11 @@ modes (except of course for the 'Tag' suffix).
463465
Passing custom command line arguments to Exuberant Ctags ~
464466

465467
You may want to run Exuberant Ctags with specific command line options, for
466-
example the code_complete [13] plug-in requires the signature field to be
468+
example the code_complete [14] plug-in requires the signature field to be
467469
present. To do this you can create a configuration file for Exuberant Ctags,
468470
e.g. '~/.ctags' on UNIX or '%USERPROFILE%\ctags.cnf' on Windows. The file
469471
should contain one command line option per line. See the Exuberant Ctags
470-
manual [14] for details.
472+
manual [15] for details.
471473

472474
===============================================================================
473475
*easytags-troubleshooting*
@@ -567,7 +569,7 @@ project directories.
567569
-------------------------------------------------------------------------------
568570
The plug-in doesn't seem to work in Cygwin ~
569571

570-
If you want to use the plug-in with Vim under Cygwin [15], you need to have
572+
If you want to use the plug-in with Vim under Cygwin [16], you need to have
571573
the Cygwin version of Ctags installed instead of the Windows version (thanks
572574
to Alex Zuroff for reporting this!).
573575

@@ -578,13 +580,13 @@ Contact ~
578580
If you have questions, bug reports, suggestions, etc. the author can be
579581
contacted at peter@peterodding.com. The latest version is available at
580582
http://peterodding.com/code/vim/easytags/ and http://github.com/xolox/vim-easytags.
581-
If you like this plug-in please vote for it on Vim Online [16].
583+
If you like this plug-in please vote for it on Vim Online [17].
582584

583585
===============================================================================
584586
*easytags-license*
585587
License ~
586588

587-
This software is licensed under the MIT license [17]. Copyright 2011 Peter
589+
This software is licensed under the MIT license [18]. Copyright 2011 Peter
588590
Odding <peter@peterodding.com>.
589591

590592
===============================================================================
@@ -599,14 +601,15 @@ References ~
599601
[6] http://peterodding.com/code/vim/downloads/easytags.zip
600602
[7] http://peterodding.com/code/vim/shell/
601603
[8] http://en.wikipedia.org/wiki/Dynamic-link_library
602-
[9] http://www.vim.org/scripts/script.php?script_id=2620
603-
[10] http://en.wikipedia.org/wiki/Symbolic_link
604-
[11] http://en.wikipedia.org/wiki/Hard_link
605-
[12] http://en.wikipedia.org/wiki/Canonicalization
606-
[13] http://www.vim.org/scripts/script.php?script_id=1764
607-
[14] http://ctags.sourceforge.net/ctags.html#FILES
608-
[15] http://en.wikipedia.org/wiki/Cygwin
609-
[16] http://www.vim.org/scripts/script.php?script_id=3114
610-
[17] http://en.wikipedia.org/wiki/MIT_License
604+
[9] https://npmjs.org/package/jsctags
605+
[10] http://www.vim.org/scripts/script.php?script_id=2620
606+
[11] http://en.wikipedia.org/wiki/Symbolic_link
607+
[12] http://en.wikipedia.org/wiki/Hard_link
608+
[13] http://en.wikipedia.org/wiki/Canonicalization
609+
[14] http://www.vim.org/scripts/script.php?script_id=1764
610+
[15] http://ctags.sourceforge.net/ctags.html#FILES
611+
[16] http://en.wikipedia.org/wiki/Cygwin
612+
[17] http://www.vim.org/scripts/script.php?script_id=3114
613+
[18] http://en.wikipedia.org/wiki/MIT_License
611614

612615
vim: ft=help

0 commit comments

Comments
 (0)