原帖:http://www.it165.net/os/html/201407/8899.html
-
1.使用命令安装ctags:
1.
sudo apt-get install ctags
2.安装taglist
下载:
http://vim.sourceforge.net/scripts/download_script.php?src_id=6416
拷贝到ubuntu中,使用命令解压:
1.
unzip taglist_42.zip
解压后出现两个文件夹,doc和plugin,将其拷贝到相应的目录下即可
1.
sudo cp doc/taglist.txt /usr/share/vim/vim72/doc/
2.
sudo cp plugin/taglist.vim /usr/share/vim/vim72/plugin/
修改vim配置文件
1.
sudo vim /etc/vim/vimrc
在最后添加如下内容
1.
""
""
""
""
""
""
""
""
"Taglist设置"
""
""
""
""
""
""
""
""
2.
let Tlist_Auto_Open =
1
3.
let Tlist_Ctags_Cmd =
'/usr/bin/ctags'
4.
let Tlist_Show_One_File =
1
5.
let Tlist_Exit_OnlyWindow =
1