blob: 16fed6d7edbbeba3efddc4f8522fa5e5e8b0c807 [file] [log] [blame]
Bram Moolenaard69bd9a2014-04-29 12:15:40 +02001Tests for setting the '[,'] marks when joining lines.
2
3STARTTEST
4:so small.vim
5:/^\t\t/
Bram Moolenaar901e58c2015-08-11 18:33:48 +020060gqj:
Bram Moolenaard69bd9a2014-04-29 12:15:40 +02007: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
13ENDTEST
14
15
16 O sodales, ludite, vos qui
17attamen consulite per voster honur. Tua pulchra facies me fay planszer milies
18
19This line.
20Should be joined with the next line
21and with this line
22
23Results: