summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-05-19 21:15:15 +0200
committerBram Moolenaar <Bram@vim.org>2013-05-19 21:15:15 +0200
commit097c992c464b0fbf04c3b3464a3ac512725ae0ba (patch)
tree690102448794b4f4867d6735d1db450853897410 /runtime
parent884f6e44e03b2a599cd70b12360b7c7e42242e00 (diff)
downloadvim-git-097c992c464b0fbf04c3b3464a3ac512725ae0ba.tar.gz
updated for version 7.3.972v7.3.972
Problem: Cursor not restored after InsertEnter autocommand if it moved to another line. Solution: Also restore if the saved line number is still valid. Allow setting v:char to skip restoring.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/autocmd.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
index d9f40f49b..364670a94 100644
--- a/runtime/doc/autocmd.txt
+++ b/runtime/doc/autocmd.txt
@@ -691,8 +691,11 @@ InsertCharPre When a character is typed in Insert mode,
InsertEnter Just before starting Insert mode. Also for
Replace mode and Virtual Replace mode. The
|v:insertmode| variable indicates the mode.
- Be careful not to move the cursor or do
- anything else that the user does not expect.
+ Be careful not to do anything else that the
+ user does not expect.
+ The cursor is restored afterwards. If you do
+ not want that set |v:char| to a non-empty
+ string.
*InsertLeave*
InsertLeave When leaving Insert mode. Also when using
CTRL-O |i_CTRL-O|. But not for |i_CTRL-C|.