diff options
Diffstat (limited to 'src/nvim/testdir/test_marks.in')
-rw-r--r-- | src/nvim/testdir/test_marks.in | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_marks.in b/src/nvim/testdir/test_marks.in index 341f3ac30f..23c2fb65fe 100644 --- a/src/nvim/testdir/test_marks.in +++ b/src/nvim/testdir/test_marks.in @@ -8,11 +8,27 @@ STARTTEST madduu :let a = string(getpos("'a")) :$put ='Mark after delete-undo-redo-undo: '.a -:/^\t/,$wq! test.out +:'' ENDTEST textline A textline B textline C +STARTTEST +:" test that CTRL-A and CTRL-X updates last changed mark '[, ']. +:/^123/ +:execute "normal! \<C-A>`[v`]rAjwvjw\<C-X>`[v`]rX" +ENDTEST + +CTRL-A CTRL-X: +123 123 123 +123 123 123 +123 123 123 + +STARTTEST +:g/^STARTTEST/.,/^ENDTEST/d +:wq! test.out +ENDTEST + Results: |