Bram Moolenaar | efa304d | 2014-04-01 14:08:28 +0200 | [diff] [blame] | 1 | Test for ":options". |
2 | |||||
3 | STARTTEST | ||||
4 | :so small.vim | ||||
5 | :let caught = 'ok' | ||||
6 | :try | ||||
7 | :options | ||||
8 | :catch | ||||
9 | :let caught = v:throwpoint . "\n" . v:exception | ||||
10 | :endtry | ||||
11 | :buf 1 | ||||
12 | :$put =caught | ||||
Bram Moolenaar | 1746747 | 2015-11-10 17:50:24 +0100 | [diff] [blame] | 13 | :" |
14 | :" Test that changing 'path' keeps two commas. | ||||
15 | :set path=foo,,bar | ||||
16 | :set path-=bar | ||||
17 | :set path+=bar | ||||
18 | :$put =&path | ||||
Bram Moolenaar | efa304d | 2014-04-01 14:08:28 +0200 | [diff] [blame] | 19 | :/^result/,$w! test.out |
20 | :qa! | ||||
21 | ENDTEST | ||||
22 | |||||
23 | result |