Bram Moolenaar | 06a108f | 2010-07-10 14:10:50 +0200 | [diff] [blame] | 1 | Test 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 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5 | |
| 6 | STARTTEST |
Bram Moolenaar | 00ec685 | 2010-08-01 15:47:03 +0200 | [diff] [blame] | 7 | :set nocompatible viminfo+=nviminfo |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8 | :set nojoinspaces |
Bram Moolenaar | 06a108f | 2010-07-10 14:10:50 +0200 | [diff] [blame] | 9 | :set cpoptions-=j |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10 | /firstline/ |
Bram Moolenaar | 06a108f | 2010-07-10 14:10:50 +0200 | [diff] [blame] | 11 | j"tdGpJjJjJjJjJjJjJjJjJjJjJjJjJjJj05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions+=j |
| 12 | j05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions-=j joinspaces |
| 13 | j"tpJjJjJjJjJjJjJjJjJjJjJjJjJjJj05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions+=j |
| 14 | j05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions-=j nojoinspaces compatible |
| 15 | j"tpJjJjJjJjJjJjJjJjJjJjJjJjJjJj4Jy3l$pjdG:?firstline?+1,$w! test.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16 | :qa! |
| 17 | ENDTEST |
| 18 | |
| 19 | firstline |
| 20 | asdfasdf. |
| 21 | asdf |
| 22 | asdfasdf. |
| 23 | asdf |
| 24 | asdfasdf. |
| 25 | asdf |
| 26 | asdfasdf. |
| 27 | asdf |
| 28 | asdfasdf. |
| 29 | asdf |
| 30 | asdfasdf. |
| 31 | asdf |
| 32 | asdfasdf. |
| 33 | asdf |
| 34 | asdfasdf |
| 35 | asdf |
| 36 | asdfasdf |
| 37 | asdf |
| 38 | asdfasdf |
| 39 | asdf |
| 40 | asdfasdf |
| 41 | asdf |
| 42 | asdfasdf |
| 43 | asdf |
| 44 | asdfasdf |
| 45 | asdf |
| 46 | asdfasdf |
| 47 | asdf |
Bram Moolenaar | 06a108f | 2010-07-10 14:10:50 +0200 | [diff] [blame] | 48 | zx cvn. |
| 49 | as dfg? |
| 50 | hjkl iop! |
| 51 | ert |
| 52 | zx cvn. |
| 53 | as dfg? |
| 54 | hjkl iop! |
| 55 | ert |
| 56 | |