本文共 2557 字,大约阅读时间需要 8 分钟。
"-------------------- key map--------------------"inoremap [ [] iinoremap ] [] iinoremap ( () iinoremap ) () iinoremap { { } Oinoremap } { } Oinoremap < <> iinoremap " "" iinoremap ' '' "-------------- ctag configuration ------------------"set tags=tags;set autochdir"--------------- taglist configuration ---------------"nmap tl :Tlist let Tlist_Show_One_File = 1let Tlist_Exit_OnlyWindow = 1let Tlist_File_Fold_Auto_Close = 1let Tlist_Auto_Open = 1let Tlist_Process_File_Always=1"------------- winmanager configuration --------------"nmap wm :WMToggle let g:winManagerWindowLayout='FileExplorer|TagList'nmap lu :FirstExplorerWindow nmap lb :BottomExplorerWindow "-------------- cscope configuration -----------------"set cscopequickfix=s-,c-,d-,i-,t-,e-
tar -zxvf ctags-xx.tar.gz./configure make make installsudo make installctags --version
set tags=tags;set autochdir
unzip taglist_46.zip
拷贝解压后的taglist.txt到目录:/usr/share/vim/vim74/doc
拷贝解压后的taglist.vim到目录:/usr/share/vim/vim74/pluginnmap tl :Tlistlet Tlist_Show_One_File = 1let Tlist_Exit_OnlyWindow = 1let Tlist_File_Fold_Auto_Close = 1let Tlist_Auto_Open = 1let Tlist_Process_File_Always=1
和taglist配置一样的操作,将winmanager解压以后,加压后的文件参考taglist拷贝到对应目录,/etc/vim/vimrc添加内容参考步骤1
./configuremakemake install
ctrl+d 退出cscope
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT build.o -MD -MP -MF .deps/build.Tpo -c -o build.o build.cbuild.c:52:20: fatal error: curses.h: No such file or directory #include^compilation terminated.make[2]: *** [build.o] Error 1make[2]: Leaving directory `/home/guang/develop/plugin/cscope-15.8b/src'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/guang/develop/plugin/cscope-15.8b'make: *** [all] Error 2
解决:
$ sudo apt-get install libncurses5-dev libncursesw5-dev
/home/guang/develop/plugin/cscope-15.8b/src/input.c:260: undefined reference to `wredrawln'collect2: error: ld returned 1 exit statusmake[2]: *** [cscope] Error 1make[2]: Leaving directory `/home/guang/develop/plugin/cscope-15.8b/src'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/guang/develop/plugin/cscope-15.8b'make: *** [all] Error 2
解决:安装完成libncurses5-dev后,再执行一遍如下步骤:
./configuremakemake install
转载地址:http://dbvsi.baihongyu.com/