mirror of
https://github.com/gryf/.vim.git
synced 2025-12-18 03:50:30 +01:00
Updated zenburn, mark and tagbar
This commit is contained in:
90
doc/mark.txt
90
doc/mark.txt
@@ -55,14 +55,15 @@ HIGHLIGHTING *mark-highlighting*
|
||||
{Visual}<Leader>m Mark or unmark the visual selection.
|
||||
*<Leader>r* *v_<Leader>r*
|
||||
<Leader>r Manually input a regular expression to mark.
|
||||
{Visual}<Leader>r (Based on the visual selection.)
|
||||
{Visual}<Leader>r Ditto, based on the visual selection.
|
||||
|
||||
In accordance with the built-in |star| command,
|
||||
all these mappings use 'ignorecase', but not
|
||||
'smartcase'.
|
||||
*<Leader>n*
|
||||
<Leader>n Clear the mark under the cursor.
|
||||
If not on a mark: Clear all marks.
|
||||
If not on a mark: Disable all marks, similar to
|
||||
|:nohlsearch|.
|
||||
|
||||
Note: Marks that span multiple lines are not detected,
|
||||
so the use of <Leader>n on such a mark will
|
||||
@@ -73,7 +74,13 @@ HIGHLIGHTING *mark-highlighting*
|
||||
:Mark {pattern} Mark or unmark {pattern}.
|
||||
For implementation reasons, {pattern} cannot use the
|
||||
'smartcase' setting, only 'ignorecase'.
|
||||
:Mark Clear all marks.
|
||||
:Mark Disable all marks, similar to |:nohlsearch|. Marks
|
||||
will automatically re-enable when a mark is added or
|
||||
removed, or a search for marks is performed.
|
||||
*:MarkClear*
|
||||
:MarkClear Clear all marks. In contrast to disabling marks, the
|
||||
actual mark information is cleared, the next mark will
|
||||
use the first highlight group. This cannot be undone.
|
||||
|
||||
|
||||
SEARCHING *mark-searching*
|
||||
@@ -109,16 +116,47 @@ SEARCHING *mark-searching*
|
||||
You can use Vim's |jumplist| to go back to previous
|
||||
mark matches and the position before a mark search.
|
||||
|
||||
MARK PERSISTENCE *mark-persistence*
|
||||
|
||||
The marks can be kept and restored across Vim sessions, using the |viminfo|
|
||||
file. For this to work, the "!" flag must be part of the 'viminfo' setting: >
|
||||
set viminfo+=! " Save and restore global variables.
|
||||
< *:MarkLoad*
|
||||
:MarkLoad Restore the marks from the previous Vim session. All
|
||||
current marks are discarded.
|
||||
*:MarkSave*
|
||||
:MarkSave Save the currently defined marks (or clear the
|
||||
persisted marks if no marks are currently defined) for
|
||||
use in a future Vim session.
|
||||
|
||||
By default, automatic persistence is enabled (so you don't need to explicitly
|
||||
|:MarkSave|), but you have to explicitly load the persisted marks in a new Vim
|
||||
session via |:MarkLoad|, to avoid that you accidentally drag along outdated
|
||||
highlightings from Vim session to session, and be surprised by the arbitrary
|
||||
highlight groups and occasional appearance of forgotten marks. If you want
|
||||
just that though and automatically restore any marks, set |g:mwAutoLoadMarks|.
|
||||
|
||||
You can also initialize the marks to static values, e.g. by including this in
|
||||
|vimrc|: >
|
||||
runtime plugin/mark.vim
|
||||
silent MarkClear
|
||||
Mark foo
|
||||
Mark bar
|
||||
Or you can define custom commands that preset certain marks: >
|
||||
command -bar MyMarks silent MarkClear | execute 'Mark foo' | execute 'Mark bar'
|
||||
Or a command that adds to the existing marks and then toggles them: >
|
||||
command -bar ToggleFooBarMarks execute 'Mark foo' | execute 'Mark bar'
|
||||
|
||||
==============================================================================
|
||||
INSTALLATION *mark-installation*
|
||||
|
||||
This script is packaged as a|vimball|. If you have the "gunzip" decompressor
|
||||
in your PATH, simply edit the *.vba.gz package in Vim; otherwise, decompress
|
||||
the archive first, e.g. using WinZip. Inside Vim, install by sourcing the
|
||||
vimball or via the|:UseVimball|command. >
|
||||
vimball or via the |:UseVimball| command. >
|
||||
vim mark.vba.gz
|
||||
:so %
|
||||
To uninstall, use the|:RmVimball|command.
|
||||
To uninstall, use the |:RmVimball| command.
|
||||
|
||||
DEPENDENCIES *mark-dependencies*
|
||||
|
||||
@@ -135,13 +173,30 @@ Higher numbers always take precedence and are displayed above lower ones.
|
||||
|
||||
The search type highlighting (in the search message) can be changed via: >
|
||||
highlight link SearchSpecialSearchType MoreMsg
|
||||
< *g:mwHistAdd*
|
||||
<
|
||||
*g:mwHistAdd*
|
||||
By default, any marked words are also added to the search (/) and input (@)
|
||||
history; if you don't want that, remove the corresponding symbols from: >
|
||||
let g:mwHistAdd = '/@'
|
||||
<
|
||||
You can use different mappings by mapping to the <Plug>Mark... mappings before
|
||||
this plugin is sourced. To remove the default overriding of * and #, use: >
|
||||
*g:mwAutoLoadMarks*
|
||||
To enable the automatic restore of marks from a previous Vim session: >
|
||||
let g:mwAutoLoadMarks = 1
|
||||
< *g:mwAutoSaveMarks*
|
||||
To turn off the automatic persistence of marks across Vim sessions: >
|
||||
let g:mwAutoSaveMarks = 0
|
||||
You can still explicitly save marks via |:MarkSave|.
|
||||
|
||||
*mark-mappings*
|
||||
You can use different mappings by mapping to the <Plug>Mark... mappings (use
|
||||
":map <Plug>Mark" to list them all) before this plugin is sourced.
|
||||
|
||||
There are no default mappings for toggling all marks and for the |:MarkClear|
|
||||
command, but you can define some yourself: >
|
||||
nmap <Leader>M <Plug>MarkToggle
|
||||
nmap <Leader>N <Plug>MarkAllClear
|
||||
<
|
||||
To remove the default overriding of * and #, use: >
|
||||
nmap <Plug>IgnoreMarkSearchNext <Plug>MarkSearchNext
|
||||
nmap <Plug>IgnoreMarkSearchPrev <Plug>MarkSearchPrev
|
||||
<
|
||||
@@ -163,20 +218,21 @@ IDEAS *mark-ideas*
|
||||
|
||||
Taken from an alternative implementation at
|
||||
http://vim.wikia.com/wiki/Highlight_multiple_words:
|
||||
- Allow to specify the highlight group number via :Mark [n] {regexp}
|
||||
- Allow to specify the highlight group number via :[N]Mark {regexp}
|
||||
- Use keys 1-9 on the numeric keypad to toggle a highlight group number.
|
||||
- Persist the patterns in a uppercase global variable across Vim sessions.
|
||||
(Request from Mun Johl, 16-Apr-2010.)
|
||||
Can be somewhat emulated by placing something like this in |vimrc|: >
|
||||
runtime plugin/mark.vim
|
||||
Mark foo
|
||||
Mark bar
|
||||
< or defining a custom command a la: >
|
||||
command -bar MyMarks execute "Mark foo" | execute "Mark bar"
|
||||
|
||||
==============================================================================
|
||||
HISTORY *mark-history*
|
||||
|
||||
2.5.0 07-May-2011
|
||||
- ENH: Add explicit mark persistence via :MarkLoad and :MarkSave commands and
|
||||
automatic persistence via the g:mwAutoLoadMarks and g:mwAutoSaveMarks
|
||||
configuration flags. (Request from Mun Johl, 16-Apr-2010)
|
||||
- Expose toggling of mark display (keeping the mark patterns) via new
|
||||
<Plug>MarkToggle mapping. Offer :MarkClear command as a replacement for the
|
||||
old argumentless :Mark command, which now just disables, but not clears all
|
||||
marks.
|
||||
|
||||
2.4.4 18-Apr-2011
|
||||
- BUG: Include trailing newline character in check for current mark, so that a
|
||||
mark that matches the entire line (e.g. created by V<Leader>m) can be
|
||||
|
||||
268
doc/tagbar.txt
268
doc/tagbar.txt
@@ -3,7 +3,7 @@
|
||||
Author: Jan Larres <jan@majutsushi.net>
|
||||
Licence: Vim licence, see |license|
|
||||
Homepage: http://majutsushi.github.com/tagbar/
|
||||
Version: 1.5
|
||||
Version: 2.0.1
|
||||
|
||||
==============================================================================
|
||||
Contents *tagbar* *tagbar-contents*
|
||||
@@ -11,12 +11,15 @@ Contents *tagbar* *tagbar-contents*
|
||||
1. Intro ........................... |tagbar-intro|
|
||||
Pseudo-tags ................... |tagbar-pseudotags|
|
||||
Supported features ............ |tagbar-features|
|
||||
Other ctags-compatible programs |tagbar-other|
|
||||
2. Requirements .................... |tagbar-requirements|
|
||||
3. Installation .................... |tagbar-installation|
|
||||
4. Usage ........................... |tagbar-usage|
|
||||
Commands ...................... |tagbar-commands|
|
||||
Key mappings .................. |tagbar-keys|
|
||||
5. Configuration ................... |tagbar-configuration|
|
||||
Highlight colours ............. |tagbar-highlight|
|
||||
Automatically opening Tagbar .. |tagbar-autoopen|
|
||||
6. Extending Tagbar ................ |tagbar-extend|
|
||||
7. Bugs and limitations ............ |tagbar-bugs|
|
||||
8. History ......................... |tagbar-history|
|
||||
@@ -100,6 +103,16 @@ The following features are supported by Tagbar:
|
||||
Tex, Vera, Verilog, VHDL, Vim and YACC.
|
||||
- Can be extended to support arbitrary new types.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
OTHER CTAGS-COMPATIBLE PROGRAMS *tagbar-other*
|
||||
|
||||
Tagbar theoretically also supports filetype-specific programs that can output
|
||||
tag information that is compatible with ctags. However due to potential
|
||||
incompatibilities this may not always completely work. Tagbar has been tested
|
||||
with doctorjs/jsctags and will use that if present, other programs require
|
||||
some configuration (see |tagbar-extend|). If a program does not work even with
|
||||
correct configuration please contact me.
|
||||
|
||||
==============================================================================
|
||||
2. Requirements *tagbar-requirements*
|
||||
|
||||
@@ -117,15 +130,15 @@ The following requirements have to be met in order to be able to use tagbar:
|
||||
Tagbar will work on any platform that ctags runs on -- this includes
|
||||
UNIX derivatives, Mac OS X and Windows. Note that other versions like
|
||||
GNU ctags will not work.
|
||||
Tagbar generates the tag information by itself and doesn't need already
|
||||
existing tag files.
|
||||
Tagbar generates the tag information by itself and doesn't need (or use)
|
||||
already existing tag files.
|
||||
- File type detection must be turned on in vim. This can be done with the
|
||||
following command in your vimrc:
|
||||
>
|
||||
filetype on
|
||||
<
|
||||
See |filetype| for more information.
|
||||
- Tagbar will not work in |restricted-mode|.
|
||||
- Tagbar will not work in |restricted-mode| or with 'compatible' set.
|
||||
|
||||
==============================================================================
|
||||
3. Installation *tagbar-installation*
|
||||
@@ -195,9 +208,9 @@ in the Tagbar window. The current sort order is displayed in the statusbar of
|
||||
the Tagbar window.
|
||||
|
||||
Folding~
|
||||
The displayed scopes (and unscoped types) can be folded to hide untinteresting
|
||||
information. Unfortunately the folding state is lost once you leave the Tagbar
|
||||
window, see |tagbar-bugs|.
|
||||
The displayed scopes (and unscoped types) can be folded to hide uninteresting
|
||||
information. Mappings similar to Vim's built-in ones are provided. Folds can
|
||||
also be opened and closed by clicking on the fold icon with the mouse.
|
||||
|
||||
Displaying the prototype of a tag~
|
||||
Tagbar can display the prototype of a tag. More precisely it can display the
|
||||
@@ -223,20 +236,38 @@ COMMANDS *tagbar-commands*
|
||||
Open the Tagbar window and close it on tag selection, regardless of the
|
||||
setting of |g:tagbar_autoclose|. If it was already open jump to it.
|
||||
|
||||
:TagbarSetFoldlevel [number]
|
||||
Set the foldlevel of the tags of the current file to [number]. The
|
||||
foldlevel of tags in other files remains unaffected. Works in the same way
|
||||
as 'foldlevel'.
|
||||
|
||||
:TagbarShowTag
|
||||
Open the parent folds of the current tag in the file window as much as
|
||||
needed for the tag to be visible in the Tagbar window.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
KEY MAPPINGS *tagbar-keys*
|
||||
|
||||
These mappings are valid in the Tagbar window:
|
||||
|
||||
<F1> Display key mapping help.
|
||||
<CR>/<Enter> Jump to the tag under the cursor. Doesn't work for pseudo-tags.
|
||||
<CR>/<Enter> Jump to the tag under the cursor. Doesn't work for pseudo-tags
|
||||
or generic headers.
|
||||
p Jump to the tag under the cursor, but stay in the Tagbar window.
|
||||
<LeftMouse> When on a fold icon, open or close the fold depending on the
|
||||
current state.
|
||||
<2-LeftMouse> Same as <CR>.
|
||||
<Space> Display the prototype of the current tag (i.e. the line defining
|
||||
it) in the command line.
|
||||
+ Open the fold under the cursor.
|
||||
- Close the fold under the cursor.
|
||||
* Open all folds.
|
||||
= Close all folds.
|
||||
+/zo Open the fold under the cursor.
|
||||
-/zc Close the fold under the cursor or the current one if there is
|
||||
no fold under the cursor.
|
||||
o/za Toggle the fold under the cursor or the current one if there is
|
||||
no fold under the cursor.
|
||||
*/zR Open all folds by setting foldlevel to 99.
|
||||
=/zM Close all folds by setting foldlevel to 0.
|
||||
<C-N> Go to the next top-level tag.
|
||||
<C-P> Go to the previous top-level tag.
|
||||
s Toggle sort order between name and file order.
|
||||
x Toggle zooming the window.
|
||||
q Close the Tagbar window.
|
||||
@@ -246,6 +277,8 @@ q Close the Tagbar window.
|
||||
|
||||
*g:tagbar_ctags_bin*
|
||||
g:tagbar_ctags_bin~
|
||||
Default: empty
|
||||
|
||||
Use this option to specify the location of your ctags executable. Only needed
|
||||
if it is not in one of the directories in your $PATH environment variable.
|
||||
|
||||
@@ -256,6 +289,8 @@ Example:
|
||||
|
||||
*g:tagbar_left*
|
||||
g:tagbar_left~
|
||||
Default: 0
|
||||
|
||||
By default the Tagbar window will be opened on the right-hand side of vim. Set
|
||||
this option to open it on the left instead.
|
||||
|
||||
@@ -266,7 +301,9 @@ Example:
|
||||
|
||||
*g:tagbar_width*
|
||||
g:tagbar_width~
|
||||
Width of the Tagbar window in characters. The default is 40.
|
||||
Default: 40
|
||||
|
||||
Width of the Tagbar window in characters.
|
||||
|
||||
Example:
|
||||
>
|
||||
@@ -275,8 +312,10 @@ Example:
|
||||
|
||||
*g:tagbar_autoclose*
|
||||
g:tagbar_autoclose~
|
||||
Default: 0
|
||||
|
||||
If you set this option the Tagbar window will automatically close when you
|
||||
jump to a tag. The default is to not automatically close the window.
|
||||
jump to a tag.
|
||||
|
||||
Example:
|
||||
>
|
||||
@@ -285,8 +324,10 @@ Example:
|
||||
|
||||
*g:tagbar_autofocus*
|
||||
g:tagbar_autofocus~
|
||||
Default: 0
|
||||
|
||||
If you set this option the cursor will move to the Tagbar window when it is
|
||||
opened. The default is to not move the cursor to the window.
|
||||
opened.
|
||||
|
||||
Example:
|
||||
>
|
||||
@@ -295,9 +336,12 @@ Example:
|
||||
|
||||
*g:tagbar_sort*
|
||||
g:tagbar_sort~
|
||||
Default: 1
|
||||
|
||||
If this option is set the tags are sorted according to their name. If it is
|
||||
unset they are sorted according to their order in the source file. The default
|
||||
is to sort them by name.
|
||||
unset they are sorted according to their order in the source file. Note that
|
||||
in the second case Pseudo-tags are always sorted before normal tags of the
|
||||
same kind since they don't have a real position in the file.
|
||||
|
||||
Example:
|
||||
>
|
||||
@@ -306,9 +350,11 @@ Example:
|
||||
|
||||
*g:tagbar_compact*
|
||||
g:tagbar_compact~
|
||||
Default: 0
|
||||
|
||||
Setting this option will result in Tagbar omitting the short help at the
|
||||
top of the window and the blank lines in between top-level scopes in order to
|
||||
save screen real estate. The default is to not use compact mode.
|
||||
save screen real estate.
|
||||
|
||||
Example:
|
||||
>
|
||||
@@ -317,15 +363,124 @@ Example:
|
||||
|
||||
*g:tagbar_expand*
|
||||
g:tagbar_expand~
|
||||
Default: 0
|
||||
|
||||
If this option is set the Vim window will be expanded by the width of the
|
||||
Tagbar window if using a GUI version of Vim. The default is not to expand the
|
||||
window.
|
||||
Tagbar window if using a GUI version of Vim.
|
||||
|
||||
Example:
|
||||
>
|
||||
let g:tagbar_expand = 1
|
||||
<
|
||||
|
||||
*g:tagbar_foldlevel*
|
||||
g:tagbar_foldlevel~
|
||||
Default: 99
|
||||
|
||||
The initial foldlevel for folds in the Tagbar window. Fold with a level higher
|
||||
than this number will be closed.
|
||||
|
||||
Example:
|
||||
>
|
||||
let g:tagbar_foldlevel = 2
|
||||
<
|
||||
|
||||
*g:tagbar_usearrows*
|
||||
g:tagbar_usearrows~
|
||||
{Windows only}
|
||||
Default: 0
|
||||
|
||||
Tagbar can display nice Unicode arrows instead of +/- characters as fold icons.
|
||||
However, Windows doesn't seem to be able to substitute in characters from
|
||||
other fonts if the current font doesn't support them. This means that you have
|
||||
to use a font that supports those arrows. Unfortunately there is no way to
|
||||
detect whether specific characters are supported in the current font. So if
|
||||
your font supports those arrows you have to set this option to make it work.
|
||||
|
||||
Example:
|
||||
>
|
||||
let g:tagbar_usearrows = 1
|
||||
<
|
||||
|
||||
*g:tagbar_autoshowtag*
|
||||
g:tagbar_autoshowtag~
|
||||
Default: 0
|
||||
|
||||
If this variable is set and the current tag is inside of a closed fold then
|
||||
the folds will be opened as much as needed for the tag to be visible so it can
|
||||
be highlighted. If it is not set then the folds won't be opened and the parent
|
||||
tag will be highlighted instead. You can use the TagbarShowTag command to open
|
||||
the folds manually.
|
||||
|
||||
Example:
|
||||
>
|
||||
let g:tagbar_autoshowtag = 1
|
||||
<
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
HIGHLIGHT COLOURS *tagbar-highlight*
|
||||
|
||||
All of the colours used by Tagbar can be customized. Here is a list of the
|
||||
highlight groups that are defined by Tagbar:
|
||||
|
||||
TagbarComment
|
||||
The help at the top of the buffer.
|
||||
|
||||
TagbarKind
|
||||
The header of generic "kinds" like "functions" and "variables".
|
||||
|
||||
TagbarScope
|
||||
Tags that define a scope like classes, structs etc.
|
||||
|
||||
TagbarType
|
||||
The type of a tag or scope if available.
|
||||
|
||||
TagbarSignature
|
||||
Function signatures.
|
||||
|
||||
TagbarPseudoID
|
||||
The asterisk (*) that signifies a pseudo-tag.
|
||||
|
||||
TagbarFoldIcon
|
||||
The fold icon on the left of foldable tags.
|
||||
|
||||
TagbarHighlight
|
||||
The colour that is used for automatically highlighting the current tag.
|
||||
|
||||
TagbarAccessPublic
|
||||
The "public" visibility/access symbol.
|
||||
|
||||
TagbarAccessProtected
|
||||
The "protected" visibility/access symbol.
|
||||
|
||||
TagbarAccessPrivate
|
||||
The "private" visibility/access symbol.
|
||||
|
||||
If you want to change any of those colours put a line like the following in
|
||||
your vimrc:
|
||||
>
|
||||
highlight TagbarScope guifg=Green ctermfg=Green
|
||||
<
|
||||
See |:highlight| for more information.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
AUTOMATICALLY OPENING TAGBAR *tagbar-autoopen*
|
||||
|
||||
If you want Tagbar to open automatically, for example on Vim startup or for
|
||||
specific filetypes, there are various ways to do it. For example, to always
|
||||
open Tagbar on Vim startup you can put this into your vimrc file:
|
||||
>
|
||||
autocmd VimEnter * nested TagbarOpen
|
||||
<
|
||||
If you want to have it start for specific filetypes put
|
||||
>
|
||||
TagbarOpen
|
||||
<
|
||||
into a corresponding filetype plugin (see |filetype-plugin|).
|
||||
|
||||
Check out |autocmd.txt| if you want it to automatically open in more
|
||||
complicated cases.
|
||||
|
||||
==============================================================================
|
||||
6. Extending Tagbar *tagbar-extend*
|
||||
|
||||
@@ -344,17 +499,21 @@ kinds: A list of the "language kinds" that should be listed in Tagbar,
|
||||
Use the command >
|
||||
ctags --list-kinds={language name}
|
||||
< to get a list of the kinds ctags supports for a given language. An
|
||||
entry in this list is a string with two parts separated by a
|
||||
colon: the first part is the one-character abbreviation that ctags
|
||||
uses, and the second part is an arbitrary string that will be used
|
||||
in Tagbar as the header for the tags of this kind that are not
|
||||
listed under a specific scope. For example, the string >
|
||||
"f:functions"
|
||||
entry in this list is a string with two or three parts separated
|
||||
by a colon: the first part is the one-character abbreviation that
|
||||
ctags uses, and the second part is an arbitrary string that will
|
||||
be used in Tagbar as the header for the tags of this kind that are
|
||||
not listed under a specific scope. The optional third part
|
||||
determines whether tags of this kind should be folded by default,
|
||||
with 1 meaning they should be folded and 0 they should not. If
|
||||
this part is omitted the tags will not be folded by default. For
|
||||
example, the string >
|
||||
"f:functions:1"
|
||||
< would list all the function definitions in a file under the header
|
||||
"functions".
|
||||
"functions" and fold them.
|
||||
sro: The scope resolution operator. For example, in C++ it is "::" and
|
||||
in Java it is ".". When in doubt run ctags as shown above and look
|
||||
at the output.
|
||||
in Java it is ".". If in doubt run ctags as shown above and check
|
||||
the output.
|
||||
kind2scope: A dictionary describing the mapping of tag kinds (in their
|
||||
one-character representation) to the scopes their children will
|
||||
appear in, for example classes, structs etc.
|
||||
@@ -403,8 +562,20 @@ deffile: The path to a file with additional ctags definitions (see the
|
||||
< Then the "deffile" entry would look like this to allow for the
|
||||
plugin to be installed in an arbitray location (for example
|
||||
with pathogen): >
|
||||
|
||||
'deffile' : expand('<sfile>:p:h:h') . '/ctags/mylang.cnf'
|
||||
<
|
||||
ctagsbin: The path to a filetype-specific ctags-compatible program like
|
||||
{optional} jsctags. Set it in the same way as |g:tagbar_ctags_bin|. jsctags is
|
||||
used automatically if found in your $PATH and does not have to be
|
||||
set in that case. If it is not in your path you have to provide the
|
||||
complete configuration and use the "replace" key (see the
|
||||
Tagbar source code for the suggested configuration).
|
||||
ctagsargs: The arguments to be passed to the filetype-specific ctags program
|
||||
{optional} (without the filename). Make sure you set an option that makes the
|
||||
program output its data on stdout. Not used for the normal ctags
|
||||
program.
|
||||
|
||||
|
||||
You then have to assign this dictionary to a variable with the name
|
||||
>
|
||||
@@ -424,8 +595,8 @@ used in Tagbar.
|
||||
let g:tagbar_type_cpp = {
|
||||
\ 'ctagstype' : 'c++',
|
||||
\ 'kinds' : [
|
||||
\ 'd:macros',
|
||||
\ 'p:prototypes',
|
||||
\ 'd:macros:1',
|
||||
\ 'p:prototypes:1',
|
||||
\ 'g:enums',
|
||||
\ 'e:enumerators',
|
||||
\ 't:typedefs',
|
||||
@@ -467,7 +638,7 @@ the order of enums and typedefs, you would do it like this:
|
||||
>
|
||||
let g:tagbar_type_cpp = {
|
||||
\ 'kinds' : [
|
||||
\ 'd:macros',
|
||||
\ 'd:macros:1',
|
||||
\ 'g:enums',
|
||||
\ 't:typedefs',
|
||||
\ 'e:enumerators',
|
||||
@@ -542,8 +713,8 @@ Now we have to create the Tagbar language definition in our vimrc:
|
||||
\ 's:sections',
|
||||
\ 'g:graphics',
|
||||
\ 'l:labels',
|
||||
\ 'r:refs',
|
||||
\ 'p:pagerefs'
|
||||
\ 'r:refs:1',
|
||||
\ 'p:pagerefs:1'
|
||||
\ ],
|
||||
\ 'sort' : 0,
|
||||
\ 'deffile' : expand('<sfile>:p:h:h') . '/ctags/latex.cnf'
|
||||
@@ -606,13 +777,24 @@ files.
|
||||
problem in practice anyway. Tags with the same name at any other level are
|
||||
no problem, though.
|
||||
|
||||
- The fold state of the Tagbar window is lost when the window is left.
|
||||
Again, I don't know of any proper way around this that still allows
|
||||
auto-updating -- |winsaveview()| doesn't really help here.
|
||||
|
||||
==============================================================================
|
||||
8. History *tagbar-history*
|
||||
|
||||
2.0.1 (2011-04-26)
|
||||
- Fix sorting bug when 'ignorecase' is set
|
||||
|
||||
2.0 (2011-04-26)
|
||||
- Folding now works correctly. Folds will be preserved when leaving the
|
||||
Tagbar window and when switching between files. Also tag types can be
|
||||
configured to be folded by default, which is useful for things like
|
||||
includes and imports.
|
||||
- DoctorJS/jsctags and other compatible programs are now supported.
|
||||
- All of the highlight groups can now be overridden.
|
||||
- Added keybinding to quickly jump to next/previous top-level tag.
|
||||
- Added Taglist's "p" keybinding for jumping to a tag without leaving the
|
||||
Tagbar window.
|
||||
- Several bugfixes and other small improvements.
|
||||
|
||||
1.5 (2011-03-06)
|
||||
- Type definitions can now include a path to a file with the ctags
|
||||
definition. This is especially useful for ftplugins that can now ship
|
||||
@@ -659,5 +841,15 @@ warranty of any kind, either expressed or implied. In no event will the
|
||||
copyright holder be liable for any damamges resulting from the use of this
|
||||
software.
|
||||
|
||||
The folding technique was inspired by NERDTree by Martin Grenfell.
|
||||
|
||||
Taybin Rutkin:
|
||||
- Contributed tagbar_autofocus option
|
||||
Seth Milliken:
|
||||
- Contributed folding keybindings that resemble the built-in ones
|
||||
|
||||
Thanks to the following people for feature suggestions etc: Jan Christoph
|
||||
Ebersbach, pielgrzym
|
||||
|
||||
==============================================================================
|
||||
vim: tw=78 ts=8 sw=8 sts=8 noet ft=help
|
||||
|
||||
13
doc/tags
13
doc/tags
@@ -79,6 +79,9 @@
|
||||
:Loremipsum loremipsum.txt /*:Loremipsum*
|
||||
:Loreplace loremipsum.txt /*:Loreplace*
|
||||
:Mark mark.txt /*:Mark*
|
||||
:MarkClear mark.txt /*:MarkClear*
|
||||
:MarkLoad mark.txt /*:MarkLoad*
|
||||
:MarkSave mark.txt /*:MarkSave*
|
||||
:Modified: vimblogger_ft.txt /*:Modified:*
|
||||
:PreviewBlogArticle vimblogger_ft.txt /*:PreviewBlogArticle*
|
||||
:SendBlogArticle vimblogger_ft.txt /*:SendBlogArticle*
|
||||
@@ -365,16 +368,21 @@ g:loremipsum_files loremipsum.txt /*g:loremipsum_files*
|
||||
g:loremipsum_marker loremipsum.txt /*g:loremipsum_marker*
|
||||
g:loremipsum_paragraph_template loremipsum.txt /*g:loremipsum_paragraph_template*
|
||||
g:loremipsum_words loremipsum.txt /*g:loremipsum_words*
|
||||
g:mwAutoLoadMarks mark.txt /*g:mwAutoLoadMarks*
|
||||
g:mwAutoSaveMarks mark.txt /*g:mwAutoSaveMarks*
|
||||
g:mwHistAdd mark.txt /*g:mwHistAdd*
|
||||
g:snippets_dir snipMate.txt /*g:snippets_dir*
|
||||
g:snips_author snipMate.txt /*g:snips_author*
|
||||
g:tagbar_autoclose tagbar.txt /*g:tagbar_autoclose*
|
||||
g:tagbar_autofocus tagbar.txt /*g:tagbar_autofocus*
|
||||
g:tagbar_autoshowtag tagbar.txt /*g:tagbar_autoshowtag*
|
||||
g:tagbar_compact tagbar.txt /*g:tagbar_compact*
|
||||
g:tagbar_ctags_bin tagbar.txt /*g:tagbar_ctags_bin*
|
||||
g:tagbar_expand tagbar.txt /*g:tagbar_expand*
|
||||
g:tagbar_foldlevel tagbar.txt /*g:tagbar_foldlevel*
|
||||
g:tagbar_left tagbar.txt /*g:tagbar_left*
|
||||
g:tagbar_sort tagbar.txt /*g:tagbar_sort*
|
||||
g:tagbar_usearrows tagbar.txt /*g:tagbar_usearrows*
|
||||
g:tagbar_width tagbar.txt /*g:tagbar_width*
|
||||
g:vimwiki_CJK_length vimwiki.txt /*g:vimwiki_CJK_length*
|
||||
g:vimwiki_auto_checkbox vimwiki.txt /*g:vimwiki_auto_checkbox*
|
||||
@@ -440,6 +448,8 @@ mark-ideas mark.txt /*mark-ideas*
|
||||
mark-installation mark.txt /*mark-installation*
|
||||
mark-known-problems mark.txt /*mark-known-problems*
|
||||
mark-limitations mark.txt /*mark-limitations*
|
||||
mark-mappings mark.txt /*mark-mappings*
|
||||
mark-persistence mark.txt /*mark-persistence*
|
||||
mark-searching mark.txt /*mark-searching*
|
||||
mark-todo mark.txt /*mark-todo*
|
||||
mark-usage mark.txt /*mark-usage*
|
||||
@@ -873,6 +883,7 @@ surround-replacements surround.txt /*surround-replacements*
|
||||
surround-targets surround.txt /*surround-targets*
|
||||
surround.txt surround.txt /*surround.txt*
|
||||
tagbar tagbar.txt /*tagbar*
|
||||
tagbar-autoopen tagbar.txt /*tagbar-autoopen*
|
||||
tagbar-bugs tagbar.txt /*tagbar-bugs*
|
||||
tagbar-commands tagbar.txt /*tagbar-commands*
|
||||
tagbar-configuration tagbar.txt /*tagbar-configuration*
|
||||
@@ -880,10 +891,12 @@ tagbar-contents tagbar.txt /*tagbar-contents*
|
||||
tagbar-credits tagbar.txt /*tagbar-credits*
|
||||
tagbar-extend tagbar.txt /*tagbar-extend*
|
||||
tagbar-features tagbar.txt /*tagbar-features*
|
||||
tagbar-highlight tagbar.txt /*tagbar-highlight*
|
||||
tagbar-history tagbar.txt /*tagbar-history*
|
||||
tagbar-installation tagbar.txt /*tagbar-installation*
|
||||
tagbar-intro tagbar.txt /*tagbar-intro*
|
||||
tagbar-keys tagbar.txt /*tagbar-keys*
|
||||
tagbar-other tagbar.txt /*tagbar-other*
|
||||
tagbar-pseudotags tagbar.txt /*tagbar-pseudotags*
|
||||
tagbar-requirements tagbar.txt /*tagbar-requirements*
|
||||
tagbar-todo tagbar.txt /*tagbar-todo*
|
||||
|
||||
Reference in New Issue
Block a user