using taglist in vim

install taglist

install ctags:

sudo apt install ctags
make sure it is exuberant ctags
ctags --version
look path of ctags, usually it is “/usr/bin/ctags”
which ctags

install taglist

download taglist package from http://vim-taglist.sourceforge.net/
mkdir ~/.vim
cd ~/.vim
unzip ~/Downloads/taglist_46.zip
cd ~/.vim/doc
vim taglist.txt
:helptags .
modify ~/.vimrc, add this settings:
let Tlist_Ctags_Cmd="/usr/bin/ctags"
let Tlist_Inc_Winwidth=0

using taglist

:Tlist toggle open or close taglist window
:Tlist same as Tlist
:TlistOpen Open taglist window
:TlistClose Close taglist window
ctrl+ww switch window
:help taglist.txt view help file

commands in taglist window

F1 help/close help
Enter jump to defination
o jump to defination in a new window
p preview
space show prototype
u update list
s sort
d delete taglist of a file
x zoom in / zoom out
- fold
+ open
* open all
= fold all
[[ jum to end of file
]] jump to begin of file
q quit

more settings

let Tlist_Show_One_File=1 show tags for only one file
let Tlist_Exit_OnlyWindow=1 close taglist window if it is the last one
let Tlist_Use_Right_Window=1 show taglist window at right side

other setting parameters

Tlist_Sort_Type
Tlist_Show_Menu
Tlist_Max_Submenu_Items
Tlist_Max_Tag_Length
Tlist_Use_SingleClick
Tlist_Auto_Open
Tlist_Close_On_Select
Tlist_File_Fold_Auto_Close
Tlist_GainFocus_On_ToggleOpen
Tlist_Process_File_Always
Tlist_WinHeight
Tlist_WinWidth
Tlist_Use_Horiz_Window

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值