Mercurial > vim
annotate src/testdir/test89.in @ 5133:3713f0f62c95
Added tag v7-3-1309 for changeset a68629544891
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 05 Jul 2013 18:29:48 +0200 |
parents | 46d6318d5b96 |
children | 08eb57382186 |
rev | line source |
---|---|
5108
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
1 - Some tests for setting 'number' and 'relativenumber' |
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
2 This is not all that useful now that the options are no longer reset when |
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
3 setting the other. |
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
4 - Some tests for findfile() function |
4119 | 5 |
6 STARTTEST | |
4129 | 7 :so small.vim |
4329 | 8 :set hidden nocp nu rnu viminfo+=nviminfo |
4119 | 9 :redir @a | set nu? rnu? | redir END |
10 :e! xx | |
11 :redir @b | set nu? rnu? | redir END | |
12 :e! # | |
13 :$put ='results:' | |
14 :$put a | |
15 :$put b | |
4219 | 16 :" |
17 :set nonu nornu | |
18 :setglobal nu | |
19 :setlocal rnu | |
20 :redir @c | setglobal nu? | redir END | |
21 :set nonu nornu | |
22 :setglobal rnu | |
23 :setlocal nu | |
24 :redir @d | setglobal rnu? | redir END | |
25 :$put =':setlocal must NOT reset the other global value' | |
26 :$put c | |
27 :$put d | |
28 :" | |
29 :set nonu nornu | |
30 :setglobal nu | |
31 :setglobal rnu | |
32 :redir @e | setglobal nu? | redir END | |
33 :set nonu nornu | |
34 :setglobal rnu | |
35 :setglobal nu | |
36 :redir @f | setglobal rnu? | redir END | |
37 :$put =':setglobal MUST reset the other global value' | |
38 :$put e | |
39 :$put f | |
40 :" | |
41 :set nonu nornu | |
42 :set nu | |
43 :set rnu | |
44 :redir @g | setglobal nu? | redir END | |
45 :set nonu nornu | |
46 :set rnu | |
47 :set nu | |
48 :redir @h | setglobal rnu? | redir END | |
49 :$put =':set MUST reset the other global value' | |
50 :$put g | |
51 :$put h | |
52 :" | |
5108
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
53 :let cwd=getcwd() |
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
54 :cd ../.. |
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
55 :$put ='' |
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
56 :$put ='Testing findfile' |
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
57 :$put ='' |
5122
46d6318d5b96
updated for version 7.3.1304
Bram Moolenaar <bram@vim.org>
parents:
5108
diff
changeset
|
58 :set ssl |
5108
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
59 :$put =findfile('test19.in','src/test*') |
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
60 :exe "cd" cwd |
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
61 :cd .. |
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
62 :$put =findfile('test19.in','test*') |
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
63 :$put =findfile('test19.in','testdir') |
cb0a5c9c0f9b
updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents:
4736
diff
changeset
|
64 :exe "cd" cwd |
4119 | 65 :/^results/,$w! test.out |
66 :q! | |
67 ENDTEST | |
68 |