diff options
-rw-r--r-- | plugin/insert_cancel.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/insert_cancel.vim b/plugin/insert_cancel.vim index 8512790..1ec0f91 100644 --- a/plugin/insert_cancel.vim +++ b/plugin/insert_cancel.vim @@ -56,8 +56,8 @@ if has('autocmd') && v:version >= 700 augroup insert_cancel autocmd! - " On buffer load and cursor move, cache the current change number - autocmd BufNewFile,BufRead,CursorMoved * + " On buffer edit and cursor move, cache the current change number + autocmd BufEnter,CursorMoved * \ let b:insert_cancel_changenr = changenr() " Function wrappers for entering and leaving insert mode |