很多IDE都包含一個側邊欄,用於顯示代碼結構,比如類、函數等,vim也可以找到類似的插件,這裏找到的是taglist-plus。
安裝:
在.vimrc中添加:
Plugin 'taglist-plus'
然後執行 :PluginInstall
使用:
打開taglist-plus :TlistOpen
關閉taglist-plus :TlistClose
打開幫助文檔 :help taglist-plus.txt
設置:
插件默認顯示在左側,跟NERDTree重複了,我想讓它顯示在右側,可以在.vimrc中添加如下設置:
let Tlist_Use_Right_Window=1