1Test for joining lines and marks in them
2 in compatible and nocompatible modes
3 and with 'joinspaces' set or not
4 and with 'cpoptions' flag 'j' set or not
5
6STARTTEST
7:set nocompatible viminfo+=nviminfo
8:set nojoinspaces
9:set cpoptions-=j
10/firstline/
11j"tdGpJjJjJjJjJjJjJjJjJjJjJjJjJjJj05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions+=j
12j05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions-=j joinspaces
13j"tpJjJjJjJjJjJjJjJjJjJjJjJjJjJj05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions+=j
14j05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions-=j nojoinspaces compatible
15j"tpJjJjJjJjJjJjJjJjJjJjJjJjJjJj4Jy3l$pjdG:?firstline?+1,$w! test.out
16:qa!
17ENDTEST
18
19firstline
20asdfasdf.
21asdf
22asdfasdf. 
23asdf
24asdfasdf.  
25asdf
26asdfasdf.	
27asdf
28asdfasdf. 	
29asdf
30asdfasdf.	 
31asdf
32asdfasdf.		
33asdf
34asdfasdf
35asdf
36asdfasdf 
37asdf
38asdfasdf  
39asdf
40asdfasdf	
41asdf
42asdfasdf	 
43asdf
44asdfasdf 	
45asdf
46asdfasdf		
47asdf
48zx cvn.
49as dfg?
50hjkl iop!
51ert
52zx cvn.
53as dfg?
54hjkl iop!
55ert
56
57