我正在使用https://github.com/w0rp/ale插件。但它会使Vim变得不太响应… 我已经在<leader>l
上绑定了ALETooggle
。
最好将其默认禁用,并在需要时通过键盘快捷方式启用,我尝试将ALEDisable
放在我的.vimrc
中,但是它给我以下错误:
Error detected while processing /Users/daniel/.vimrc:
line 94:
E492: Not an editor command: ALEDisable
Press ENTER or type command to continue
这是一个会引发问题的 .vimrc
示例
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
Plugin 'w0rp/ale'
call vundle#end() " required
filetype plugin indent on " required
noremap <leader>l :ALEToggle<CR>
ALEDisable
:help pack-add
),并考虑将其放置在opt
文件夹中?这似乎会很好地工作。当然,你可以创建一个绑定来执行:packadd ale
。 - Patrick Bacon.vimrc
中使ALEDisable
起作用产生影响? - geckosALEDisable
失败了,因为插件在 vimrc 之后加载。 - D. Ben Knoble