ctags

mac上的ctags配置

1、http://ctags.sourceforge.net从download源码,源码安装

2、which -a ctags查看ctags版本,观察到有两个版本

/usr/bin/ctags =>  orginal ctags

/usr/local/bin/ctags => exuberant ctags

3、将安装版本放在系统版本之前

修改~/.bash_profile, PATH=/usr/local/bin:$PATH

4、source ~/.bash_profile,使配置生效

 

taglist使用

1、http://www.vim.org/scripts/script.php?script_id=273中download下载源码,解压缩到~/.vim下

2、在~/.vimrc中添加

      let Tlist_Show_One_File=1
      let Tlist_Exit_OnlyWindow=1

3、在编辑的文件中,输入命令 :Tlist即可

 

WinManager使用

1、http://www.vim.org/scripts/script.php?script_id=95中download下载源码,解压到~/.vim下

2、在~/.vimrc中添加

     let g:winManagerWindowLayout='FileExplorer|TagList'

     nmap wm :WMToggle<CR>

3、在编辑的文件中,在normal模式下输入wm即可