简体   繁体   中英

Can not get delimitmate to work in vim

I am trying to use delimitmate plugin but when I run vim I 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
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  

What am I messing up?

It looks like you have the ~/.vim/plugin/delimitMate.vim script, but not the corresponding ~/.vim/autoload/delimitMate.vim script. Depending on how you installed the plugin (unpack zip, VimBall, clone repository with Pathogen, install with Vundle etc.), you need to reinstall the entire plugin.

Though small and simple plugins just contain of a single script (to be placed in the plugin/ config subdir), many plugins separate parts of the functionality into modules which are loaded on-demand, improving Vim's footprint and startup time. The module mechanism (introduce with Vim 7.0) is called autoload ; cp. :help autoload . Those additional scripts must be placed in the proper autoload/ config subdir for the plugin to work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM