vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
1.disabled
(495B)
1 dd
2 ipublic <Escape>
3 :%s,\$this->,,g<Enter> /* we use , as delimiter because // interferes with the CPP */
4 :%s,\$,,g<Enter>
5 :%s,private var,private double var,<Enter>
6 /sqrt<Enter>
7 iMath.<Escape>
8 gg
9 /function<Enter>
10 dw
11 n
12 cwvoid<Escape>
13 n
14 .
15 n
16 cwdouble<Escape>
17 gg
18 /val<Enter>
19 idouble <Escape> /* in vim <Escape> moves the cursor 1 cell back, hence 2n will not do the right thing */
20 fv /* accounts for this cursor is now at the start of "val" */
21 2n.
22 Gdd