diff options
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | plugin/insert_cancel.vim | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1 +1 @@ -3.1.0 +3.1.1 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 |