diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index c273d85a..59a264f6 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -816,15 +816,11 @@ function youcompleteme#EnableCursorMovedAutocommands() augroup END endfunction -command! YcmUnlock call youcompleteme#EnableCursorMovedAutocommands() - function youcompleteme#DisableCursorMovedAutocommands() autocmd! ycmcompletemecursormove CursorMoved * autocmd! ycmcompletemecursormove CursorMovedI * endfunction -command! YcmLock call youcompleteme#DisableCursorMovedAutocommands() - " This is basic vim plugin boilerplate let &cpo = s:save_cpo unlet s:save_cpo