vis

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

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

commit 590101101bcf1fd86ac62bf62561fab0d76facc8
parent 48e2fb1a82f26fb5c9e1daf57cd98673c1fe746e
Author: Erlend Fagerheim <erlendf80@gmail.com>
Date:   Fri, 24 Feb 2017 00:05:47 +0100

test/vis: added a few motion tests

Diffstat:
Avim/motions/line.in | 2++
Avim/motions/line.keys | 2++
Avis/motions/find.in | 8++++++++
Avis/motions/find.keys | 7+++++++
Avis/motions/find.ref | 8++++++++
Avis/motions/line.in | 5+++++
Avis/motions/line.keys | 4++++
Avis/motions/line.ref | 5+++++
Avis/motions/prev-start-of-word.in | 4++++
Avis/motions/prev-start-of-word.keys | 4++++
Avis/motions/prev-start-of-word.ref | 4++++
Avis/motions/till.in | 8++++++++
Avis/motions/till.keys | 8++++++++
Avis/motions/till.ref | 8++++++++
14 files changed, 77 insertions(+), 0 deletions(-)

diff --git a/vim/motions/line.in b/vim/motions/line.in @@ -0,0 +1,2 @@ +one two three + one two three diff --git a/vim/motions/line.keys b/vim/motions/line.keys @@ -0,0 +1,2 @@ +g_d0 /* move to last char on line ( $ fails ) delete to start of line */ +j$^dw /* go to first non blank of next line and delete word */ diff --git a/vis/motions/find.in b/vis/motions/find.in @@ -0,0 +1,8 @@ +1 find char c (f) +2 find char c with count (2f) +3 find char c using repeat and count (2;) +4 find char a then reverse repeat +5 find char c reverse F +6 find unicode æ +7 find space + diff --git a/vis/motions/find.keys b/vis/motions/find.keys @@ -0,0 +1,7 @@ +fcr|+ +2fc.+ +2;.+ +3fa,.+ +fFFc.+ +fæ.+ +f<Space>. diff --git a/vis/motions/find.ref b/vis/motions/find.ref @@ -0,0 +1,8 @@ +1 find |har c (f) +2 find char | with count (2f) +3 find char | using repeat and count (2;) +4 find char | then reverse repeat +5 find char | reverse F +6 find unicode | +7|find space + diff --git a/vis/motions/line.in b/vis/motions/line.in @@ -0,0 +1,5 @@ +1 Change start of line. +2 Change end of line. + 3 Change first non blank. +4 Last non blank of line + diff --git a/vis/motions/line.keys b/vis/motions/line.keys @@ -0,0 +1,4 @@ +f.0r|+ +$h.+ +$^.+ +g_.+ diff --git a/vis/motions/line.ref b/vis/motions/line.ref @@ -0,0 +1,5 @@ +| Change start of line. +2 Change end of line| + | Change first non blank. +4 Last non blank of lin| + diff --git a/vis/motions/prev-start-of-word.in b/vis/motions/prev-start-of-word.in @@ -0,0 +1,4 @@ +1 Find prev start of _ord. +2 Find prev start of _ord with count. +3 Find prev _tart_of_WORD. +4 Find prev _tart_of_WORD with count. diff --git a/vis/motions/prev-start-of-word.keys b/vis/motions/prev-start-of-word.keys @@ -0,0 +1,4 @@ +f.br|+ +;3b.+ +;B.+ +;3B.+ diff --git a/vis/motions/prev-start-of-word.ref b/vis/motions/prev-start-of-word.ref @@ -0,0 +1,4 @@ +1 Find prev start of |ord. +2 Find prev start of |ord with count. +3 Find prev |tart_of_WORD. +4 Find prev |tart_of_WORD with count. diff --git a/vis/motions/till.in b/vis/motions/till.in @@ -0,0 +1,8 @@ +1 till char c (t) +2 till char c with count (2t) +3 till char c using repeat and count (2;) +4 till char a then reverse repeat +5 till char c reverse T +6 till unicode æ +7 till space + diff --git a/vis/motions/till.keys b/vis/motions/till.keys @@ -0,0 +1,8 @@ +tcr|+ +2tc.+ +2;.+ +3ta,.+ +tTTc.+ +tæ.+ +t<Space>. + diff --git a/vis/motions/till.ref b/vis/motions/till.ref @@ -0,0 +1,8 @@ +1 till|char c (t) +2 till char|c with count (2t) +3 till char|c using repeat and count (2;) +4 till char a|then reverse repeat +5 till char c|reverse T +6 till unicode|æ +7 til| space +