5848
|
1 Tests for setting the '[,'] marks when joining lines.
|
|
2
|
|
3 STARTTEST
|
|
4 :so small.vim
|
|
5 :/^\t\t/
|
|
6 0gqj
|
|
7 :let a=string(getpos("'[")).'/'.string(getpos("']"))
|
|
8 :/^This line/;'}-join
|
|
9 :let b=string(getpos("'[")).'/'.string(getpos("']"))
|
|
10 :$put ='First test: Start/End '.string(a)
|
|
11 :$put ='Second test: Start/End '.string(b)
|
|
12 :/^\t\t/,$wq! test.out
|
|
13 ENDTEST
|
|
14
|
|
15
|
|
16 O sodales, ludite, vos qui
|
|
17 attamen consulite per voster honur. Tua pulchra facies me fay planszer milies
|
|
18
|
|
19 This line.
|
|
20 Should be joined with the next line
|
|
21 and with this line
|
|
22
|
|
23 Results:
|