Skip to content

Instantly share code, notes, and snippets.

@eapache
Last active August 26, 2018 12:06
Show Gist options
  • Save eapache/0c0abbdb2e810a3f1f4a to your computer and use it in GitHub Desktop.
Save eapache/0c0abbdb2e810a3f1f4a to your computer and use it in GitHub Desktop.
vimrc for multiple-cursors and YouCompleteMe integration
" Experimentally integrate YouCompleteMe with vim-multiple-cursors, otherwise
" the numerous Cursor events cause great slowness
" (https://github.com/kristijanhusak/vim-multiple-cursors/issues/4)
function Multiple_cursors_before()
let s:old_ycm_whitelist = g:ycm_filetype_whitelist
let g:ycm_filetype_whitelist = {}
endfunction
function Multiple_cursors_after()
let g:ycm_filetype_whitelist = s:old_ycm_whitelist
endfunction
@tweekmonster
Copy link

Thank you! I wish this was in a readme somewhere instead of buried in issue comments.

@bryanmaina
Copy link

bryanmaina commented Nov 5, 2016

Is this still working ? if I try multiple-cursors in files that are about 400 lines vim and neovim just freeze. You can test by opening one of the files below.
I have my vimrc splited into these two files if you need to take a look on them: vim bultin options and vim plugins options.

@tkkcc
Copy link

tkkcc commented Aug 26, 2018

Good, works as expect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment