vis

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

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

to-right.ref

(525B)


      1 f{char}	To [count]'th occurrence of char to the right.
      2 1 find |har c (f)
      3 2 find char | with count (2f)
      4 3 find char | using repeat and count (2;)
      5 4 find char | in reverse direction with count ($3,)
      6 5 find consecutive char #|# with count (2f#)
      7 6 find consecutive char #|# using repeat (;;)
      8 7 find consecutive char #|# using repeat and count (2;)
      9 8 find consecutive char #|# in reverse direction with count ($2,)
     10  found (d;)
     11 10 delete not found (d;)
     12 11 delete invalid count # (d2;)
     13 12 find unicode |
     14 13|find space
     15 14 find tab |