2012-04-20 35 views
0

我有一個使用Vim colorschemes的問題。我已經下載並安裝了this plugin,但我不知道如何讓我的選擇永久。如何用vimrc插件更改vim的背景和顏色?

你能告訴我該怎麼做嗎?

這裏是我的.vimrc配置文件的一部分:

set nocompatible  " not compatible with the old-fashion vi mode 
set bs=2    " allow backspacing over everything in insert mode 
set history=50   " keep 50 lines of command line history 
set ruler    " show the cursor position all the time 
set autoread   " auto read when file is changed from outside 
set number    " setting number always 
set showcmd    " display an incomplete command 
set background=wombat256  " or light 

我選擇wombat256,但它不工作。

回答

1

改變這一行:

set background=wombat256  " or light 

colorscheme wombat256 

而且不通過一個很好的機會,閱讀文檔::help 'background':help colorscheme

+0

這是工作,但是,我必須添加此代碼集'term = xterm-256color'之前和'colorscheme wombat256'。 – viyancs 2012-04-23 02:38:18