我有一个小小的vim设置,每当我在vim中打开vimrc文件时出现,我都会收到以下错误:
Error detected while processing function <SNR>46_VimEnterHook[14]..<SNR>46_UpdateErrors[15]..<SNR>46_CacheErrors[29].
.281:
line 7:
E713: Cannot use empty key for Dictionary
Press ENTER or type command to continue
就插件而言,我有以下内容: ctrlp,ensime-vim,nerdtree,supertab.vmb,syntastic,vim-scala
这是我的vimrc:
1 set nocompatible
2 set number
3 execute pathogen#infect()
4
5 filetype plugin indent on
6 syntax on
7
8 "auto open nerdtree
9 autocmd StdinReadPre * let s:std_in=1
10 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
11 map <C-n> :NERDTreeToggle<CR>
12 autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
13 let g:NERDTreeDirArrowExpandable = '+'
14 let g:NERDTreeDirArrowCollapsible = '~'
15
16 set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
17
18 "syntastic
19 set statusline+=%#warningmsg#
20 set statusline+=%{SyntasticStatuslineFlag()}
21 set statusline+=%*
22
23 let g:syntastic_always_populate_loc_list = 1
24 let g:syntastic_auto_loc_list = 1
25 let g:syntastic_check_on_open = 1
26 let g:syntastic_check_on_wq = 0
27
28 "vim-ensime
29 autocmd BufWritePost *.scala silent :EnTypeCheck
30 nnoremap <localleader>t :EnTypeCheck<CR>
我不知道从哪里开始解决这个恼人的警告,并希望得到任何帮助。我在Ubuntu 16.04上运行vim-nox-py2。