tv16.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
---
tv16.sh (275B)
---
1 # vi commands
2 echo ":e $1"
3 printf "iabc abc abc"
4 printf "oabc abc abc"
5 printf "oabc abc abc"
6 echo ":2,3s/abc/111/"
7 echo ":%s/abc/222/g"
8 echo ":w"
9 echo ":q"
10
11 # the expected output
12 echo "222 222 222" >&2
13 echo "111 222 222" >&2
14 echo "111 222 222" >&2