@@ -3,29 +3,29 @@ Test for "*Cmd" autocommands
33STARTTEST
44:so small.vim
55:/^start/,$w! Xxx " write lines below to Xxx
6- :au BufReadCmd testA 0r Xxx|$del
7- :e testA " will read text of Xxd instead
8- :au BufWriteCmd testA call append(line("$"), "write")
6+ :au BufReadCmd XtestA 0r Xxx|$del
7+ :e XtestA " will read text of Xxd instead
8+ :au BufWriteCmd XtestA call append(line("$"), "write")
99:w " will append a line to the file
10- :r testA " should not read anything
10+ :r XtestA " should not read anything
1111: " now we have:
1212: " 1 start of Xxx
1313: " 2 test40
1414: " 3 end of Xxx
1515: " 4 write
16- :au FileReadCmd testB '[r Xxx
17- :2r testB " will read Xxx below line 2 instead
16+ :au FileReadCmd XtestB '[r Xxx
17+ :2r XtestB " will read Xxx below line 2 instead
1818: " 1 start of Xxx
1919: " 2 test40
2020: " 3 start of Xxx
2121: " 4 test40
2222: " 5 end of Xxx
2323: " 6 end of Xxx
2424: " 7 write
25- :au FileWriteCmd testC '[,']copy $
25+ :au FileWriteCmd XtestC '[,']copy $
26264GA1
27- :4,5w testC " will copy lines 4 and 5 to the end
28- :r testC " should not read anything
27+ :4,5w XtestC " will copy lines 4 and 5 to the end
28+ :r XtestC " should not read anything
2929: " 1 start of Xxx
3030: " 2 test40
3131: " 3 start of Xxx
@@ -35,14 +35,14 @@ STARTTEST
3535: " 7 write
3636: " 8 test401
3737: " 9 end of Xxx
38- :au FILEAppendCmd testD '[,']w! test.out
39- :w >>testD " will write all lines to test.out
40- :$r testD " should not read anything
38+ :au FILEAppendCmd XtestD '[,']w! test.out
39+ :w >>XtestD " will write all lines to test.out
40+ :$r XtestD " should not read anything
4141:$w >>test.out " append "end of Xxx" to test.out
42- :au BufReadCmd testE 0r test.out|$del
43- :sp testE " split window with test.out
42+ :au BufReadCmd XtestE 0r test.out|$del
43+ :sp XtestE " split window with test.out
44445Goasdf:"
45- :au BufWriteCmd testE w! test.out
45+ :au BufWriteCmd XtestE w! test.out
4646:wall " will write other window to test.out
4747: " 1 start of Xxx
4848: " 2 test40
0 commit comments