LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 742|回复: 2

vim 不支持语法顔色?

[复制链接]
发表于 2006-8-11 22:34:16 | 显示全部楼层 |阅读模式
我已经在/etc/vim/vimrc中输入了syntax on ,可是运行vi /boot/grub/menu.lst时,还是没有顔色。
于是我 ls -l /usr/bin/vi 输出如下:
lrwxrwxrwx 1 root root 20 2006-08-10 19:13 /usr/bin/vi -> /etc/alternatives/vi
不知道是怎么回事?链接不对?还是vi 本身的问题?
发表于 2006-8-11 23:30:38 | 显示全部楼层
  1. [0 No.2050 huan@deb ~/tmp]$ which vi
  2. /usr/bin/vi
  3. [0 No.2051 huan@deb ~/tmp]$ vdir /usr/bin/vi
  4. lrwxrwxrwx 1 root root 20 2006-03-10 10:45 /usr/bin/vi -> /etc/alternatives/vi
  5. [0 No.2052 huan@deb ~/tmp]$ vdir /etc/alternatives/vi
  6. lrwxrwxrwx 1 root root 23 2006-08-09 00:04 /etc/alternatives/vi -> /home/opt/vim70/bin/vim
  7. [0 No.2053 huan@deb ~/tmp]$ sudo update-alternatives --config vi
  8. There are 4 alternatives which provide `vi'.
  9.   Selection    Alternative
  10. -----------------------------------------------
  11.       1        /usr/bin/vim
  12.       2        /usr/bin/vim.full
  13.       3        /usr/bin/vim.perl
  14. *+    4        /home/opt/vim70/bin/vim
  15. Press enter to keep the default[*], or type selection number:                           
复制代码

the same to vim
  1. [0 No.2058 huan@deb ~/tmp]$ which vim
  2. /usr/bin/vim
  3. [0 No.2059 huan@deb ~/tmp]$ vdir /usr/bin/vim
  4. lrwxrwxrwx 1 root root 21 2006-04-18 18:10 /usr/bin/vim -> /etc/alternatives/vim
  5. [0 No.2060 huan@deb ~/tmp]$ vdir /etc/alternatives/vim
  6. lrwxrwxrwx 1 root root 23 2006-08-09 00:04 /etc/alternatives/vim -> /home/opt/vim70/bin/vim
  7. [0 No.2061 huan@deb ~/tmp]$ sudo update-alternatives --config vim
  8. There are 3 alternatives which provide `vim'.
  9.   Selection    Alternative
  10. -----------------------------------------------
  11.       1        /usr/bin/vim.full
  12.       2        /usr/bin/vim.perl
  13. *+    3        /home/opt/vim70/bin/vim
  14. Press enter to keep the default[*], or type selection number:               
复制代码

please note this:
  1. [0 No.2057 huan@deb ~/tmp]$ dpkg -L vim-full | grep bin
  2. /usr/bin
  3. /usr/bin/vim.full
  4. 130 No.2062 huan@deb ~/tmp]$ dpkg -L vim-perl | grep bin
  5. /usr/bin
  6. /usr/bin/vim.perl
  7. [0 No.2058 huan@deb ~/tmp]$      
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-12 20:11:05 | 显示全部楼层
老兄,我改了,还是没有顔色!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表