1:下载vim源码
apt-get -d source vim
2:编译vim,并打开cscope参数
./configure --enable-cscope
3:make时出现以下错误
no terminal library found
checking for tgetent()... configure: error: NOT FOUND!
You need to install a terminal library; for example ncurses.
Or specify the name of the library with --with-tlib.
make[1]: *** [config] Error 1
make[1]: Leaving directory `/root/vim/vim71/src'
make: *** [first] Error 2
解决方法:apt-get install libncurses5-dev
4:sudo make install,至此安装vim成功
5:安装cscope和ctags
apt-get install cscope
阅读(1425) | 评论(0) | 转发(0) |