分页: 1 / 1
Edgy中的VI不支持语法高亮吗?
发表于 : 2006-11-16 23:10
由 brucezhao
我设置syntax on时,显示
E319:sorry,the command is not available in this version.
请问如何解决?
发表于 : 2006-11-17 12:57
由 bzimage
edgy缺省的vim版本是vim-tiny,不支持语法高亮。
安装vim之后,就好了
发表于 : 2006-11-17 15:25
由 brucezhao
感谢!
发表于 : 2006-12-08 3:59
由 xiangyuyu
我也一样的问题,谢谢了
发表于 : 2006-12-08 13:47
由 sinoyster
sudo apt-get install vim-full
cp /usr/share/vim/vimcurrent/vimrc_example.vim ~/yuk/.vimrc
发表于 : 2007-03-14 17:01
由 cooldgjk
安装vim后,如果还没有高亮,按
如下设置:
一:如过没有~/.vimrc的话,先创建该文件;
二:在文件中写入:
set autoindent
set cindent
set modeline
set ruler
set showcmd
set showfulltag
set showmode
set smartcase
set smartindent
set imcmdline
set previewwindow
set hlsearch
syntax on
syntax on这一设置就是语法高亮显示,set autoindent是自动缩进,别的有待进一步查证
三:此时如果没有彩色显示的话
在/etc/profile中写入
export TERM=xterm-color
vim 7.0
发表于 : 2007-03-18 14:55
由 genedna
vim 7.0后使用:
syntax enable
或者在/usr/share/vim/vim70/debian.vim中加入:
if &t_Co > 1
syntax enable
endif
行号
发表于 : 2007-03-18 14:56
由 genedna
set nu