2014-05-09 19 views
1

前段時間,我在前面安裝了Vundle到my/Users/name目錄(即/Users/name/.vim/bundle/Vundle.vim),並設置了一個。在我的根目錄vimrc文件已下:使用vundle安裝daylerees配色方案 - mac os x

set nocompatible 
filetype off 

set rtp+=~/.vim/bundle/Vundle.vim 
call vundle#begin() 

Plugin 'gmarik/Vundle.vim' 

Bundle 'daylerees/colour-schemes', { "rtp": "vim/" } 
colorscheme frontier 

call vundle#end() 
filetype plugin indent on 

我跑:PluginInstall的建議,並說一切都已經安裝了,但我得到一個「配色方案前沿找不到」錯誤每次我打開VIM。

這就像我所做的那樣,我是否錯過了任何步驟?

+0

我已將frontier.vim的vim文件添加到/.vim/colors/。現在我沒有找到未找到的錯誤,但顏色方案沒有顯示 – a7omiton

+1

您確定語法高亮顯示嗎? ':syntax' on' – jgriego

+0

只是爲了添加,如果你想默認情況下啓用語法(每次打開一個新文件時都不需要這樣做),在你的.vimrc文件中包含'syntax on' – a7omiton

回答

1

添加以下行filetype行後:

syntax on 

並移動colorscheme frontier線的任何位置call vundle#end()線。

+0

我已經這樣做了,但主題仍然是默認主題。我可以看到突出顯示,但這不是邊界主題 – a7omiton

+0

我已經將我的Bundle聲明更新到github頁面 – a7omiton

0

我想你可能會混合舊的和新的Vundle語法。取而代之的

Bundle 'daylerees/colour-schemes', { "rtp": "vim/" } 

嘗試

Plugin 'daylerees/colour-schemes', { 'rtp': 'vim/' } 

注意使用單引號代替雙引號的。

+0

中提到的那個不起作用的插件聲明:PluginInstall甚至沒有識別它 – a7omiton

+0

確定。在硬幣的另一面 - 你確定你正在使用最新版本的Vundle? – bdesham

+1

@ a7omiton我編輯了我的答案;嘗試這個。 – bdesham