?? taglist.txt
字號:
for quickly locating the tags.Using the taglist plugin with the winmanager plugin~You can use the taglist plugin with the winmanager plugin. This will allow youto use the file explorer, buffer explorer and the taglist plugin at the sametime in different windows. To use the taglist plugin with the winmanagerplugin, set 'TagList' in the 'winManagerWindowLayout' variable. For example,to use the file explorer plugin and the taglist plugin at the same time, usethe following setting: > let winManagerWindowLayout = 'FileExplorer|TagList'<Getting help~If you have installed the taglist help file (this file), then you can use theVim ":help taglist-<keyword>" command to get help on the various taglisttopics.You can press the <F1> key in the taglist window to display the helpinformation about using the taglist window. If you again press the <F1> key,the help information is removed from the taglist window. *taglist-debug*Debugging the taglist plugin~You can use the ":TlistDebug" command to enable logging of the debug messagesfrom the taglist plugin. To display the logged debug messages, you can use the":TlistMessages" command. To disable the logging of the debug messages, usethe ":TlistUndebug" command.You can specify a file name to the ":TlistDebug" command to log the debugmessages to a file. Otherwise, the debug messages are stored in a script-localvariable. In the later case, to minimize memory usage, only the last 3000characters from the debug messages are stored.============================================================================== *taglist-options*6. Options~A number of Vim variables control the behavior of the taglist plugin. Thesevariables are initialized to a default value. By changing these variables youcan change the behavior of the taglist plugin. You need to change thesesettings only if you want to change the behavior of the taglist plugin. Youshould use the |:let| command in your .vimrc file to change the setting of anyof these variables. The configurable taglist variables are listed below. For a detaileddescription of these variables refer to the text below this table.|'Tlist_Auto_Highlight_Tag'| Automatically highlight the current tag in the taglist.|'Tlist_Auto_Open'| Open the taglist window when Vim starts.|'Tlist_Auto_Update'| Automatically update the taglist to include newly edited files.|'Tlist_Close_On_Select'| Close the taglist window when a file or tag is selected.|'Tlist_Compact_Format'| Remove extra information and blank lines from the taglist window.|'Tlist_Ctags_Cmd'| Specifies the path to the ctags utility.|'Tlist_Display_Prototype'| Show prototypes and not tags in the taglist window.|'Tlist_Display_Tag_Scope'| Show tag scope next to the tag name.|'Tlist_Enable_Fold_Column'| Show the fold indicator column in the taglist window.|'Tlist_Exit_OnlyWindow'| Close Vim if the taglist is the only window.|'Tlist_File_Fold_Auto_Close'| Close tag folds for inactive buffers.|'Tlist_GainFocus_On_ToggleOpen'| Jump to taglist window on open.|'Tlist_Highlight_Tag_On_BufEnter'| On entering a buffer, automatically highlight the current tag.|'Tlist_Inc_Winwidth'| Increase the Vim window width to accommodate the taglist window.|'Tlist_Max_Submenu_Items'| Maximum number of items in a tags sub-menu.|'Tlist_Max_Tag_Length'| Maximum tag length used in a tag menu entry.|'Tlist_Process_File_Always'| Process files even when the taglist window is closed.|'Tlist_Show_Menu'| Display the tags menu.|'Tlist_Show_One_File'| Show tags for the current buffer only.|'Tlist_Sort_Type'| Sort method used for arranging the tags.|'Tlist_Use_Horiz_Window'| Use a horizontally split window for the taglist window.|'Tlist_Use_Right_Window'| Place the taglist window on the right side.|'Tlist_Use_SingleClick'| Single click on a tag jumps to it.|'Tlist_WinHeight'| Horizontally split taglist window height.|'Tlist_WinWidth'| Vertically split taglist window width. *'Tlist_Auto_Highlight_Tag'*Tlist_Auto_Highlight_Tag~The taglist plugin will automatically highlight the current tag in the taglistwindow. If you want to disable this, then you can set theTlist_Auto_Highlight_Tag variable to zero. Note that even though the currenttag highlighting is disabled, the tags for a new file will still be added tothe taglist window.> let Tlist_Auto_Highlight_Tag = 0<You can still use the ":TlistHighlightTag" command to highlight the currenttag. *'Tlist_Auto_Open'*Tlist_Auto_Open~To automatically open the taglist window, when you start Vim, you can set the'Tlist_Auto_Open' variable to 1. By default, this variable is set to zero andthe taglist window will not be opened automatically on Vim startup.> let Tlist_Auto_Open = 1<The taglist window is opened only when a supported type of file is opened onVim startup. For example, if you open text files, then the taglist window willnot be opened. *'Tlist_Auto_Update'*Tlist_Auto_Update~When a new file is edited, the tags defined in the file are automaticallyprocessed and added to the taglist. To stop adding new files to the taglist,set the 'Tlist_Auto_Update' variable to zero. By default, this variable is setto 1.> let Tlist_Auto_Update = 0< *'Tlist_Close_On_Select'*Tlist_Close_On_Select~If you want to close the taglist window when a file or tag is selected, thenset the 'Tlist_Close_On_Select' variable to 1. By default, this variable isset zero and when you select a tag or file from the taglist window, the windowwill not be closed.> let Tlist_Close_On_Select = 1< *'Tlist_Compact_Format'*Tlist_Compact_Format~By default, empty lines are used to separate different tag types displayed fora file and the tags displayed for different files in the taglist window. Ifyou want to display as many tags as possible in the taglist window, you canset the 'Tlist_Compact_Format' variable to 1 to get a compact display.> let Tlist_Compact_Format = 1< *'Tlist_Ctags_Cmd'*Tlist_Ctags_Cmd~The 'Tlist_Ctags_Cmd' variable specifies the location (path) of the exuberantctags utility. If exuberant ctags is present in any one of the directories inthe PATH environment variable, then there is no need to set this variable.The exuberant ctags tool can be installed under different names. When thetaglist plugin starts up, if the 'Tlist_Ctags_Cmd' variable is not set, itchecks for the names exuberant-ctags, exctags, ctags, ctags.exe and tags inthe PATH environment variable. If any one of the named executable is found,then the Tlist_Ctags_Cmd variable is set to that name.If exuberant ctags is not present in one of the directories specified in thePATH environment variable, then set this variable to point to the location ofthe ctags utility in your system. Note that this variable should point to thefully qualified exuberant ctags location and NOT to the directory in whichexuberant ctags is installed. If the exuberant ctags tool is not found ineither PATH or in the specified location, then the taglist plugin will not beloaded.> let Tlist_Ctags_Cmd = 'd:\tools\ctags.exe' let Tlist_Ctags_Cmd = '/usr/local/bin/ctags'< *'Tlist_Display_Prototype'*Tlist_Display_Prototype~By default, only the tag name will be displayed in the taglist window. If youlike to see tag prototypes instead of names, set the 'Tlist_Display_Prototype'variable to 1. By default, this variable is set to zero and only tag nameswill be displayed.> let Tlist_Display_Prototype = 1< *'Tlist_Display_Tag_Scope'*Tlist_Display_Tag_Scope~By default, the scope of a tag (like a C++ class) will be displayed insquare brackets next to the tag name. If you don't want the tag scopesto be displayed, then set the 'Tlist_Display_Tag_Scope' to zero. By default,this variable is set to 1 and the tag scopes will be displayed.> let Tlist_Display_Tag_Scope = 0< *'Tlist_Enable_Fold_Column'*Tlist_Enable_Fold_Column~By default, the Vim fold column is enabled and displayed in the taglistwindow. If you wish to disable this (for example, when you are working with anarrow Vim window or terminal), you can set the 'Tlist_Enable_Fold_Column'variable to zero.> let Tlist_Enable_Fold_Column = 1< *'Tlist_Exit_OnlyWindow'*Tlist_Exit_OnlyWindow~If you want to exit Vim if only the taglist window is currently opened, thenset the 'Tlist_Exit_OnlyWindow' variable to 1. By default, this variable isset to zero and the Vim instance will not be closed if only the taglist windowis present.> let Tlist_Exit_OnlyWindow = 1< *'Tlist_File_Fold_Auto_Close'*Tlist_File_Fold_Auto_Close~By default, the tags tree displayed in the taglist window for all the files isopened. You can close/fold the tags tree for the files manually. Toautomatically close the tags tree for inactive files, you can set theTlist_File_Fold_Auto_Close variable to 1. When this variable is set to 1, thetags tree for the current buffer is automatically opened and for all thebuffers is closed.> let Tlist_File_Fold_Auto_Close = 1< *'Tlist_GainFocus_On_ToggleOpen'*Tlist_GainFocus_On_ToggleOpen~When the taglist window is opened using the ':TlistToggle' command, thisoption controls whether the cursor is moved to the taglist window or remainsin the current window. By default, this option is set to 0 and the cursorremains in the current window. When this variable is set to 1, the cursormoves to the taglist window after opening the taglist window.> let Tlist_GainFocus_On_ToggleOpen = 1< *'Tlist_Highlight_Tag_On_BufEnter'*Tlist_Highlight_Tag_On_BufEnter~When you enter a Vim buffer/window, the current tag in that buffer/window isautomatically highlighted in the taglist window. If the current tag name isnot visible in the taglist window, then the taglist window contents arescrolled to make that tag name visible. If you like to disable the automatichighlighting of the current tag when entering a buffer, you can set the'Tlist_Highlight_Tag_On_BufEnter' variable to zero. The default setting forthis variable is 1.> let Tlist_Highlight_Tag_On_BufEnter = 0< *'Tlist_Inc_Winwidth'*Tlist_Inc_Winwidth~By default, when the width of the window is less than 100 and a new taglistwindow is opened vertically, then the window width will be increased by thevalue set in the 'Tlist_WinWidth' variable to accommodate the new window. Thevalue of this variable is used only if you are using a vertically splittaglist window.If your terminal doesn't support changing the window width from Vim (olderversion of xterm running in a Unix system) or if you see any weird problems inthe screen due to the change in the window width or if you prefer not toadjust the window width then set the 'Tlist_Inc_Winwidth' variable to zero.CAUTION: If you are using the MS-Windows version of Vim in a MS-DOS commandwindow then you must set this variable to zero, otherwise the system may hangdue to a Vim limitation (explained in :help win32-problems)> let Tlist_Inc_Winwidth = 0< *'Tlist_Max_Submenu_Items'*Tlist_Max_Submenu_Items~If a file contains too many tags of a particular type (function, variable,class, etc.), greater than that specified by the 'Tlist_Max_Submenu_Items'variable, then the menu for that tag type will be split into multiplesub-menus. The default setting for the 'Tlist_Max_Submenu_Items' variable is25. This can be changed by setting the 'Tlist_Max_Submenu_Items' variable:> let Tlist_Max_Submenu_Items = 20<The name of the submenu is formed using the names of the first and the lasttag entries in that submenu. *'Tlist_Max_Tag_Length'*Tlist_Max_Tag_Length~Only the first 'Tlist_Max_Tag_Length' characters from the tag names will beused to form the tag type submenu name. The default value for this variable is10. Change the 'Tlist_Max_Tag_Length' setting if you want to include more orless characters:> let Tlist_Max_Tag_Length = 10< *'Tlist_Process_File_Always'*Tlist_Process_File_Always~By default, the taglist plugin will generate and process the tags defined inthe newly opened files only when the taglist window is opened or when thetaglist menu is enabled. When the taglist window is closed, the taglist pluginwill stop processing the tags for newly opened files.You can set the 'Tlist_Process_File_Always' variable to 1 to generate the listof tags for new files even when the taglist window is closed and the taglistmenu is disabled.> let Tlist_Process_File_Always = 1<To use the ":TlistShowTag" and the ":TlistShowPrototype" commands without thetaglist window and the taglist menu, you should set this variable to 1.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -