tv13.sh - neatvi - [fork] simple vi-type editor with UTF-8 support
(HTM) git clone git://src.adamsgaard.dk/neatvi
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
tv13.sh (276B)
---
1 # vi commands
2 echo ":e $1"
3 echo ":set ic"
4 printf "iABC"
5 printf "oDEF"
6 printf "oGHI"
7 echo '1G/def'
8 printf "i1"
9 echo ":set noic"
10 echo '/ghi'
11 printf "i2"
12 echo ":w"
13 echo ":q"
14
15 # the expected output
16 echo "ABC" >&2
17 echo "21DEF" >&2
18 echo "GHI" >&2