From ac3a48de703d85a88116fe2d3b2121318a1b2869 Mon Sep 17 00:00:00 2001 From: "Spencer G. Jones" Date: Tue, 14 Oct 2014 11:08:47 -0600 Subject: [PATCH] Unlike the other functions, youcompleteme#EnableCursorMovedAutocommands and youcompleteme#DisableCursorMovedAutocommands are not overwriting. This causes an error if the file is reloaded. --- autoload/youcompleteme.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index 4c6152d2..e3652ef6 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -92,7 +92,7 @@ function! youcompleteme#Enable() endfunction -function youcompleteme#EnableCursorMovedAutocommands() +function! youcompleteme#EnableCursorMovedAutocommands() augroup ycmcompletemecursormove autocmd! autocmd CursorMovedI * call s:OnCursorMovedInsertMode() @@ -101,7 +101,7 @@ function youcompleteme#EnableCursorMovedAutocommands() endfunction -function youcompleteme#DisableCursorMovedAutocommands() +function! youcompleteme#DisableCursorMovedAutocommands() autocmd! ycmcompletemecursormove CursorMoved * autocmd! ycmcompletemecursormove CursorMovedI * endfunction