这是我的.vimrc的片段
nnoremap <leader>p "0p
xnoremap <leader>p "0p
nnoremap <leader>d "_d
xnoremap <leader>d "_d
call plug#begin('~/.vim/plugged')
Plug 'Raimondi/delimitMate'
Plug 'pangloss/vim-javascript'
Plug 'mhinz/vim-signify'
Plug 'helino/vim-json'
Plug 'rking/ag.vim'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'tpope/vim-commentary'
Plug 'scrooloose/syntastic'
call plug#end()
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_loc_list_height=1
let g:syntastic_mode_map = { 'mode': 'passive', 'active_filetypes': [],'passive_filetypes': [] }
nnoremap <leader>E :SyntasticCheck<CR> :SyntasticToggleMode<CR>
在向我的vim添加syntastic之前,vim-signify工作正常,但添加了syntime后,vim-signify不再有效。我使用全局节点安装了jshint(npm install -g jshint)。
当我打开SyntasticCheck(使用<leader>E
)我的vim随机崩溃时,会发生10次中的2次。
有人可以对这里发生的事情有所了解吗?