VIM Plugin-taglist简单使用

Opening the taglist window~
You can open the taglist window using the “:TlistOpen” or the “:TlistToggle”
commands. The “:TlistOpen” command opens the taglist window and jumps to it.
The “:TlistToggle” command opens or closes (toggle) the taglist window and the
cursor remains in the current window. If the ‘Tlist_GainFocus_On_ToggleOpen’
variable is set to 1, then the “:TlistToggle” command opens the taglist window
and moves the cursor to the taglist window.

You can map a key to invoke these commands. For example, the following command
creates a normal mode mapping for the key to toggle the taglist window.

    nnoremap <silent> <F8> :TlistToggle<CR>

Add the above mapping to your ~/.vimrc or $HOME/_vimrc file.

1.打开这个taglist 窗口

你可以使用“:TlistOpen”或“:TlistToggle”命令来打开taglist 窗口。
使用“:TlistOpen ”命令打开taglist 窗口并且光标定位在taglist 窗口上。
这个“TlistToggle”命令用于打开或关闭(开关)这个taglist 窗口,并且光标会保持在当前窗口。
如果“let Tlist_File_Fold_Auto_Close = 1” 的变量的值设置为1,然后在使用“:TlistToggle”命令打开taglist window 并且移动光标到taglist window。(个人尝试失败)
你可以映射一个键来调用这个命令例如:下面的命令就是映射键来开关taglist window。


You can select a tag in the taglist window either by pressing the key
or by double clicking the tag name using the mouse.

2.在tgalist 窗口中,

通过选择一项,然后按下回车键或者通过鼠标来双击标签的名字。可以跳转到定义的位置。


To jump to the tag in a new window, press the ‘o’ key. To open the file in the
previous window (Ctrl-W_p) use the ‘P’ key. You can press the ‘p’ key to jump
to the tag but still keep the cursor in the taglist window (preview).

3.如果想要在打开一个标签并显示在一个新的窗口是,

通过按下‘o’键,可以打开一个新的窗口并跳转到标签定义的地方。使用Ctrl-W_p 键可以跳转到上一个窗口。即同时按下Ctrl+w,然后及时按下p 键。


4.其它可用参数

【+】 Open a fold
【 - 】 Close a fold
【 * 】 Open all folds
【 = 】 Close all folds
【 [[ 】 Jump to the beginning of the previous file
【 Backspace】 Jump to the beginning of the previous file
【 ]] 】 Jump to the beginning of the next file
【 Tab 】 Jump to the beginning of the next file
【q 】 Close the taglist window
【F1 】 Display help

在taglist 中通过+ 键或- 键可以用来收缩标签。
+ 键效果:
这里写图片描述
- 键效果:
这里写图片描述
【 Space】 Display the prototype of the tag under the cursor.
For file names, display the full path to the file,
file type and the number of tags. For tag types, display the
tag type and the number of tags.
空格键:在窗口的最下方框中,显示标签的原型。如果是文件名字,则会显示文件的完整路径。文件类型和文件用于多少个标签。如果是类型的话会显示,该类型下有多少个标签。
三种效果如下:
这里写图片描述
这里写图片描述
这里写图片描述
下面的这张是taglist窗口的数据显示,与上面对应
这里写图片描述

更多详情,查看taglist.txt 的官方文档。后期或许会不定期更新。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值