我正在尝试使用delimitmate插件,但是当我运行vim时,我得到:
Error detected while processing function <SNR>26_DelimitMateDo..<SNR>26_init..<SNR>26_option_init..<SNR>26_s:
line 1:
E117: Unknown function: delimitMate#Set
E117: Unknown function: delimitMate#Set
Error detected while processing function <SNR>26_DelimitMateDo..<SNR>26_init..<SNR>26_g:
line 1:
E117: Unknown function: delimitMate#Get
Error detected while processing function <SNR>26_DelimitMateDo..<SNR>26_init..<SNR>26_option_init..<SNR>26_s:
line 1:
E117: Unknown function: delimitMate#Set
Error detected while processing function <SNR>26_DelimitMateDo..<SNR>26_init..<SNR>26_g:
line 1:
E117: Unknown function: delimitMate#Get
Error detected while processing function <SNR>26_DelimitMateDo..<SNR>26_init:
line 8:
E712: Argument of filter() must be a List or Dictionary
delimitMate: each member of a pair in delimitMate_matchpairs must be different from each other.
line 11:
E712: Argument of map() must be a List or Dictionary
E714: List required
delimitMate: invalid pairs: 0
我搞砸了什么?
答案 0 :(得分:3)
看起来你有~/.vim/plugin/delimitMate.vim
脚本,但没有相应的~/.vim/autoload/delimitMate.vim
脚本。根据您安装插件的方式(解压缩zip,VimBall,使用Pathogen克隆存储库,使用Vundle等安装),您需要重新安装整个插件。
虽然小而简单的插件只包含一个脚本(放在plugin/
config子目录中),但很多插件将功能的各个部分分成按需加载的模块,从而改善了Vim的占用空间和启动时间。模块机制(Vim 7.0引入)称为 autoload ; CP。 :help autoload
。这些附加脚本必须放在适当的autoload/
config子目录中才能使插件正常工作。