vimでマルチカーソルできるプラグインterryma/vim-multiple-cursors
とても便利なのですがデフォルト設定だと、複数選択してinsertモードにすると
ALEによるシンタックスチェックが走ってしまうため物凄く遅くなります。
Interaction with other pluginsを参考にしてALEとLSPのCoCをON/OFFすると補完もシンタックスチェックも実行されなくなるので非常に軽快になります。
function! s:multiple_cursors_before()
if exists(':ALEDisableBuffer')==2
exe 'ALEDisableBuffer'
endif
if exists(':CocDisable')==2
exe 'CocDisable'
endif
endfunction
function! s:multiple_cursors_after()
if exists(':ALEEnableBuffer')==2
exe 'ALEEnableBuffer'
endif
if exists(':CocEnable')==2
exe 'CocEnable'
endif
endfunction
augroup multiple_cursors
autocmd User MultipleCursorsPre call s:multiple_cursors_before()
autocmd User MultipleCursorsPost call s:multiple_cursors_after()
augroup END