iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.81k stars 283 forks source link

Undefined variable: v:false #379

Open yzymickey opened 3 years ago

yzymickey commented 3 years ago

.vimrc里我是下面这么写的,但进vim时报了Invalid expression: > mkdp#util#install() }, 'for': ['markdown', 'vim-plug']})的问题。 请教这是什么原因。

call plug#begin('~/.vim/plugged')

" Markdown Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}

call plug#end()

yzymickey commented 3 years ago

[root@iZ2ze15okw*** app]# vim ~/.vimrc Error detected while processing /root/.vimrc: line 95: E121: Undefined variable: v:false E15: Invalid expression: { 'mkit': {}, 'katex': {}, 'uml': {}, 'maid': {}, 'disable_sync_scroll': 0, 'sync_scroll_type': 'middle', 'hide_yaml_meta': 1, 'sequence_diagrams': {}, 'flowchart_diagrams': {}, 'content_editable': v:false, 'disable_filename': 0 } Error detected while processing /root/.vim/plugged/markdown-preview.nvim/plugin/mkdp.vim: line 72: E121: Undefined variable: v:false E15: Invalid expression: { 'mkit': {}, 'katex': {}, 'uml': {}, 'maid': {}, 'disable_sync_scroll': 0, 'sync_scroll_type': 'middle', 'hide_yaml_meta': 1, 'sequence_diagrams': {}, 'flowchart_diagrams': {}, 'content_editable': v:false, 'disable_filename': 0 } Press ENTER or type command to continue

之前的问题我把 ->改成call后不报了,现在遇到上面这个新问题,求教。

iamcco commented 2 years ago

你 vim 版本太老了吧