Mercurial > vim
diff src/testdir/test_mapping.in @ 7074:c8efa41dd451 v7.4.849
commit https://github.com/vim/vim/commit/8b5f65a527c353b9942e362e719687c3a7592309
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 1 19:26:12 2015 +0200
patch 7.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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 01 Sep 2015 19:30:04 +0200 |
parents | 5b1eefbf9a53 |
children |
line wrap: on
line diff
--- 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!