使用vim-plug安装vim-airline后启动gvim出现如下错误
处理 C:\Embad\Vim\vimfiles\plugin\vim-airline\autoload\airline\e
xtensions\wordcount\formatters\default.vim 时发生错误:
第 14 行:
E121: 未定义的变量: g:airline_statusline_funcrefs
E116: Invalid arguments for function index(g:airline_statusline_fu
ncrefs, function('airline#extensions#wordcount#formatters#defa
ult#update_fmt')) == -1
处理 C:\Embad\Vim\vimfiles\plugin\vim-airline\autoload\airline\e
xtensions\wordcount\formatters\readingtime.vim 时发生错误:
第 14 行:
E121: 未定义的变量: g:airline_statusline_funcrefs
E116: Invalid arguments for function index(g:airline_statusline_fu
ncrefs, function('airline#extensions#wordcount#formatters#readi
ngtime#update_fmt')) == -1
处理 C:\Embad\Vim\vimfiles\plugin\vim-airline\t\airline.vim
时发生错误:
第 3 行:
E484: 无法打开文件 plugin/airline.vim
第 23 行:
E492: 不是编辑器的命令: describe 'airline'
第 24 行:
E492: 不是编辑器的命令: before
第 26 行:
E580: :endif 缺少对应的 :if: end
第 28 行:
E492: 不是编辑器的命令: it 'should run user funcrefs first'
第 32 行:
E492: 不是编辑器的命令: Expect airline#statusline(1) =~ 'hello
world'
第 33 行:
E580: :endif 缺少对应的 :if: end
第 35 行:
E492: 不是编辑器的命令: it 'should not change the statusline
with -1'
第 39 行:
E492: 不是编辑器的命令: Expect &statusline == 'foo'
第 40 行:
E580: :endif 缺少对应的 :if: end
第 42 行:
E492: 不是编辑器的命令: it 'should support multiple chained
funcrefs'
第 46 行:
E492: 不是编辑器的命令: Expect airline#statusline(1) =~
'helloworld'
第 47 行:
E580: :endif 缺少对应的 :if: end
第 49 行:
E492: 不是编辑器的命令: it 'should allow users to redefine
sections'
第 52 行:
E492: 不是编辑器的命令: Expect airline#statusline(1) =~
'%{airline#util#wrap(airline#parts#mode(),0)}%#airline_a#%#airlin
e_a_bold#%{airline#util#wrap(airline#parts#mode(),0)}%#airline_a
#'
第 53 行:
E580: :endif 缺少对应的 :if: end
第 55 行:
E492: 不是编辑器的命令: it 'should remove funcrefs properly'
airline: The airline statusline funcref "function('MyIgnoreFuncref')
" has already been added.
第 59 行:
E492: 不是编辑器的命令: Expect len(g:airline_statusline_funcref
s) == c
第 60 行:
E580: :endif 缺少对应的 :if: end
第 62 行:
E492: 不是编辑器的命令: it 'should overwrite the statusline with
active and inactive splits'
第 64 行:
E492: 不是编辑器的命令: Expect airline#statusline(1) !~
'inactive'
第 65 行:
E492: 不是编辑器的命令: Expect airline#statusline(2) =~
'inactive'
第 67 行:
E580: :endif 缺少对应的 :if: end
第 69 行:
E492: 不是编辑器的命令: it 'should collapse the inactive split if
the variable is set true'
第 72 行:
E492: 不是编辑器的命令: Expect getwinvar(2, '&statusline') !~
'airline#parts#mode'
第 74 行:
E580: :endif 缺少对应的 :if: end
第 76 行:
E492: 不是编辑器的命令: it 'should not collapse the inactive split
if the variable is set false'
第 79 行:
E492: 不是编辑器的命令: Expect getwinvar(2, '&statusline') !=
'airline#parts#mode'
第 81 行:
E580: :endif 缺少对应的 :if: end
第 83 行:
E492: 不是编辑器的命令: it 'should include check_mode'
第 84 行:
E492: 不是编辑器的命令: Expect airline#statusline(1) =~
'airline#check_mode'
第 85 行:
E580: :endif 缺少对应的 :if: end
第 86 行:
E580: :endif 缺少对应的 :if: end
处理 C:\Embad\Vim\vimfiles\plugin\vim-airline\t\builder.vim
时发生错误:
第 4 行:
E492: 不是编辑器的命令: describe 'active builder'
第 5 行:
E492: 不是编辑器的命令: before
第 7 行:
E580: :endif 缺少对应的 :if: end
第 9 行:
E492: 不是编辑器的命令: it 'should start with an empty
statusline'
第 11 行:
E492: 不是编辑器的命令: Expect stl == ''
第 12 行:
E580: :endif 缺少对应的 :if: end
第 14 行:
E492: 不是编辑器的命令: it 'should transition colors from one to
the next'
第 18 行:
E492: 不是编辑器的命令: Expect stl =~ '%#Normal#hello%#No
rmal_to_Search#%#Search#world'
第 19 行:
E580: :endif 缺少对应的 :if: end
第 21 行:
E492: 不是编辑器的命令: it 'should reuse highlight group if
background colors match'
第 28 行:
E492: 不是编辑器的命令: Expect stl =~ '%#Foo1#helloworld'
第 29 行:
E580: :endif 缺少对应的 :if: end
第 31 行:
E492: 不是编辑器的命令: it 'should switch highlight groups if
foreground colors differ'
第 38 行:
E492: 不是编辑器的命令: Expect stl =~ '%#Foo1#hello%#Foo1
_to_Foo2#%#Foo2#world'
第 39 行:
E580: :endif 缺少对应的 :if: end
第 41 行:
E492: 不是编辑器的命令: it 'should split left/right sections'
第 44 行:
E492: 不是编辑器的命令: Expect stl =~ '%='
第 45 行:
E580: :endif 缺少对应的 :if: end
第 47 行:
E492: 不是编辑器的命令: it 'after split, sections use the right
separator'
第 52 行:
E492: 不是编辑器的命令: Expect stl =~ 'hello%#Normal_to_Sea
rch#%#Search#world'
第 53 行:
E580: :endif 缺少对应的 :if: end
第 55 行:
E492: 不是编辑器的命令: it 'should not repeat the same highlight
再次重装Vim/plug/airline都未解决该问题