Debian 5 安装 vim7.2

来源:互联网 发布:java countdownlatch 编辑:程序博客网 时间:2024/06/17 22:58

debian系统中vim不支持syntax on 无法让vim充满色彩!

问题分析:

原因是debian系统中vi和vim都是链接到vim.tiny上,而vim.tiny不支持syntax.

ls -al /etc/alternatives/vim

ls -al /etc/alternatives/vi

通过以上两个命令会发现这个问题原因,故自己装vim

1.去ftp://ftp.vim.org/pub/vim/unix 下载Vim7.2的源码。

2.

shell >> tar xf vim-7.1.tar.bz2

shell >> ./configure   出现下面的错误

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.


3. 到http://packages.debian.org/sid/libncurses5-dev

下载ncurses_5.7+20100313.orig.tar.gz


4.

>>tar xvf /ncurses_5.7+20100313.orig.tar.gz

>>cd ncurses-5.7

>>./configure

>>make & make install


5.建立软连接
ln -s /usr/local/vim73/bin/vim /usr/bin/vim
0 0
原创粉丝点击