debian中vi命令指向的是旧版的vi而不是vim,而且vim默认是不开启语法高亮显示的,看着好难受,实在是不爽。
开始修
#cd /etc/vim
#vi vimrc
” Vim5 and later versions support syntax highlighting. Uncommenting the next
” line enables syntax highlighting by default.
“syntax on
找到第20行,将syntax on前面的”去掉。
#vim /home/spike/self-similar/trace.cpp
Error detected while processing /usr/share/vim/vimrc:
line 20:
E319: Sorry,the command is not available in this version : syntax on
真是shit。
可能是一些扩展没有装
#apt-get install vim
再重复上述步骤。
#vim /home/spike/self-similar/trace.cpp
OK!呵呵,看见彩色了。
mole 于 2008-05-26 15:27:19发表:
How clevery you are!
Thanks a lot...