repo.or.cz
/
neatvi.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ex: increase the maximum number of buffers
[neatvi.git]
/
test
/
e0b.sh
blob
48207b430ee11229c543ecd0a2d78c9c4d1f8ddc
1
# vi commands
2
echo
"e
$1
"
3
echo
"a"
4
echo
"1"
5
echo
"2"
6
echo
"3"
7
echo
"4"
8
echo
"5"
9
echo
"."
10
echo
"1,4g/./+1s/$/x/"
11
echo
"wq"
12
13
# the expected output
14
echo
"1"
>&
2
15
echo
"2x"
>&
2
16
echo
"3x"
>&
2
17
echo
"4x"
>&
2
18
echo
"5x"
>&
2