我使用的版本是8.04 + 7.1
安装的是full
可是遇到一个不知道怎么办的问题
在终端里运行vim的话,我设置的配色方案显示不了底色,不管换什么方案,底色通通是终端的底色白色。
而当我使用gvim的话,底色可以正常显示了,但是语法高亮没有了,要我手动:syntax on才能语法高亮。
不知道是哪儿的问题。
[问题]使用 vim 过程中遇到一个小问题
-
- 帖子: 54
- 注册时间: 2006-07-27 2:28
- yaoms
- 帖子: 4952
- 注册时间: 2007-10-19 14:51
- 来自: 深圳
-
- 帖子: 54
- 注册时间: 2006-07-27 2:28
我使用的配色方案是koehler,就出现了上面的问题
而使用murphy就能显示底面了,但终端下与gui的颜色显示还是有差异
请看图 :
我的配置是:
#cat /etc/vim/vimrc
set nocompatible
set fenc=utf-8
set fencs=utf-8,gb18030,gbk,gb2312,cp936
set confirm
set showmatch
set ignorecase
filetype on
filetype plugin on
filetype indent on
set viminfo+=!
set background=dark
syntax enable
set nu
set hlsearch
set incsearch
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set cindent
set nowrap
colorscheme murphy
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
而使用murphy就能显示底面了,但终端下与gui的颜色显示还是有差异
请看图 :
我的配置是:
#cat /etc/vim/vimrc
set nocompatible
set fenc=utf-8
set fencs=utf-8,gb18030,gbk,gb2312,cp936
set confirm
set showmatch
set ignorecase
filetype on
filetype plugin on
filetype indent on
set viminfo+=!
set background=dark
syntax enable
set nu
set hlsearch
set incsearch
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set cindent
set nowrap
colorscheme murphy
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
-
- 帖子: 2841
- 注册时间: 2006-09-11 22:47