0
我使用的是rainbow_parentheses插件,我希望它在VIM啓動時啓動。目前,在啓動時,沒有任何變化;當啓動後手動調用Load_Rainbow時,它可以工作。VIM Rainbow Parenthese自動啓動
相關的vimrc部分如下:
" Rainbow Parentheses options {
function! Config_Rainbow()
call rainbow_parentheses#load(0)
call rainbow_parentheses#load(1)
call rainbow_parentheses#load(2)
endfunction
function! Load_Rainbow()
call rainbow_parentheses#activate()
endfunction
augroup TastetheRainbow
autocmd!
autocmd Syntax * call Config_Rainbow()
autocmd VimEnter * call Load_Rainbow()
augroup END
" }
這似乎爲我工作。正如在我輸入括號時,它們是彩虹色的。 – FDinoff
正如在這個確切的代碼與這個確切的插件適合你?另外,你正在運行什麼版本和VIM平臺? – dilbert
我在鏈接中做了一個倉庫的git克隆。將設置複製到我的vimrc中。我在mac os上運行vim 7.3補丁1-244,246-762。 – FDinoff