4119
|
1 Some tests for setting 'number' and 'relativenumber'
|
|
2
|
|
3 STARTTEST
|
4129
|
4 :so small.vim
|
4329
|
5 :set hidden nocp nu rnu viminfo+=nviminfo
|
4119
|
6 :redir @a | set nu? rnu? | redir END
|
|
7 :e! xx
|
|
8 :redir @b | set nu? rnu? | redir END
|
|
9 :e! #
|
|
10 :$put ='results:'
|
|
11 :$put a
|
|
12 :$put b
|
4219
|
13 :"
|
|
14 :set nonu nornu
|
|
15 :setglobal nu
|
|
16 :setlocal rnu
|
|
17 :redir @c | setglobal nu? | redir END
|
|
18 :set nonu nornu
|
|
19 :setglobal rnu
|
|
20 :setlocal nu
|
|
21 :redir @d | setglobal rnu? | redir END
|
|
22 :$put =':setlocal must NOT reset the other global value'
|
|
23 :$put c
|
|
24 :$put d
|
|
25 :"
|
|
26 :set nonu nornu
|
|
27 :setglobal nu
|
|
28 :setglobal rnu
|
|
29 :redir @e | setglobal nu? | redir END
|
|
30 :set nonu nornu
|
|
31 :setglobal rnu
|
|
32 :setglobal nu
|
|
33 :redir @f | setglobal rnu? | redir END
|
|
34 :$put =':setglobal MUST reset the other global value'
|
|
35 :$put e
|
|
36 :$put f
|
|
37 :"
|
|
38 :set nonu nornu
|
|
39 :set nu
|
|
40 :set rnu
|
|
41 :redir @g | setglobal nu? | redir END
|
|
42 :set nonu nornu
|
|
43 :set rnu
|
|
44 :set nu
|
|
45 :redir @h | setglobal rnu? | redir END
|
|
46 :$put =':set MUST reset the other global value'
|
|
47 :$put g
|
|
48 :$put h
|
|
49 :"
|
4119
|
50 :/^results/,$w! test.out
|
|
51 :q!
|
|
52 ENDTEST
|
|
53
|