vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 6bff371e3cce703ffc2a9c0df7c89d361e4ebf00
parent c62e3e2a864475a9a1f83c38c738def56b20849d
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Tue, 19 Apr 2016 21:59:15 +0200

test/vis: add test for :wq in normal mode with multiple cursors

This tests for a previous bug martanne/vis#276 where only part of
the file was saved.

Based on a patch from Tobias Mansfield-Williams.

Diffstat:
Avis/multiple-cursors/normal-mode-wq.in | 4++++
Avis/multiple-cursors/normal-mode-wq.keys | 4++++
Avis/multiple-cursors/normal-mode-wq.ref | 4++++
3 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/vis/multiple-cursors/normal-mode-wq.in b/vis/multiple-cursors/normal-mode-wq.in @@ -0,0 +1,4 @@ +1: first +2: second +3: third +4: fourth diff --git a/vis/multiple-cursors/normal-mode-wq.keys b/vis/multiple-cursors/normal-mode-wq.keys @@ -0,0 +1,4 @@ +vGI /* create cursor at start of every line */ +<C-k> /* move primary cursor up */ +<C-p> /* remove primary cursor */ +i /* switch to insert mode, so that <Esc> after test leaves cursors active */ diff --git a/vis/multiple-cursors/normal-mode-wq.ref b/vis/multiple-cursors/normal-mode-wq.ref @@ -0,0 +1,4 @@ +1: first +2: second +3: third +4: fourth