summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_mapping.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-09-01 19:26:12 +0200
committerBram Moolenaar <Bram@vim.org>2015-09-01 19:26:12 +0200
commit8b5f65a527c353b9942e362e719687c3a7592309 (patch)
tree655108e877377b6dcba8e066f87f00df2e982a90 /src/testdir/test_mapping.in
parent5adfea1ac63e252556bccce54e92e8e10b58f592 (diff)
patch 7.4.849v7.4.849
Problem: Moving the cursor in Insert mode starts new undo sequence. Solution: Add CTRL-G U to keep the undo sequence for the following cursor movement command. (Christian Brabandt)
Diffstat (limited to 'src/testdir/test_mapping.in')
-rw-r--r--src/testdir/test_mapping.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/testdir/test_mapping.in b/src/testdir/test_mapping.in
index d6c1b2d5db..f900f421e2 100644
--- a/src/testdir/test_mapping.in
+++ b/src/testdir/test_mapping.in
@@ -45,6 +45,21 @@ o+
:/^a b
0qqdw.ifooqj0@q:unmap .
+:" <c-g>U<cursor> works only within a single line
+:imapclear
+:imap ( ()<c-g>U<left>
+G2oki
+Test1: text with a (here some more textk.
+:" test undo
+G2oki
+Test2: text wit a (here some more text [und undo]uk.u
+:"
+:imapclear
+:set whichwrap=<,>,[,]
+G3o2k
+:exe ":norm! iTest3: text with a (parenthesis here\<C-G>U\<Right>new line here\<esc>\<up>\<up>."
+
+
:/^test/,$w! test.out
:qa!