annotate src/testdir/test89.in @ 6911:e09a7ff88046 v7.4.775

patch 7.4.775 Problem: It is not possible to avoid using the first item of completion. Solution: Add the "noinsert" and "noselect" values to 'completeopt'. (Shougo Matsu)
author Bram Moolenaar <bram@vim.org>
date Fri, 10 Jul 2015 18:18:40 +0200
parents 08eb57382186
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 STARTTEST
4129
01fa9313d4b5 updated for version 7.3.817
Bram Moolenaar <bram@vim.org>
parents: 4119
diff changeset
7 :so small.vim
4329
9f642ac84df9 updated for version 7.3.914
Bram Moolenaar <bram@vim.org>
parents: 4219
diff changeset
8 :set hidden nocp nu rnu viminfo+=nviminfo
4119
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :redir @a | set nu? rnu? | redir END
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :e! xx
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :redir @b | set nu? rnu? | redir END
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :e! #
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :$put ='results:'
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :$put a
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :$put b
4219
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
16 :"
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
17 :set nonu nornu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
18 :setglobal nu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
19 :setlocal rnu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
20 :redir @c | setglobal nu? | redir END
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
21 :set nonu nornu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
22 :setglobal rnu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
23 :setlocal nu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
24 :redir @d | setglobal rnu? | redir END
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
25 :$put =':setlocal must NOT reset the other global value'
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
26 :$put c
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
27 :$put d
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
28 :"
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
29 :set nonu nornu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
30 :setglobal nu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
31 :setglobal rnu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
32 :redir @e | setglobal nu? | redir END
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
33 :set nonu nornu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
34 :setglobal rnu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
35 :setglobal nu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
36 :redir @f | setglobal rnu? | redir END
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
37 :$put =':setglobal MUST reset the other global value'
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
38 :$put e
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
39 :$put f
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
40 :"
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
41 :set nonu nornu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
42 :set nu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
43 :set rnu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
44 :redir @g | setglobal nu? | redir END
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
45 :set nonu nornu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
46 :set rnu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
47 :set nu
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
48 :redir @h | setglobal rnu? | redir END
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
49 :$put =':set MUST reset the other global value'
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
50 :$put g
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
51 :$put h
6fe728bf165e updated for version 7.3.861
Bram Moolenaar <bram@vim.org>
parents: 4129
diff changeset
52 :"
5108
cb0a5c9c0f9b updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents: 4736
diff changeset
53 :let cwd=getcwd()
5176
08eb57382186 updated for version 7.4a.014
Bram Moolenaar <bram@vim.org>
parents: 5122
diff changeset
54 :cd ..
08eb57382186 updated for version 7.4a.014
Bram Moolenaar <bram@vim.org>
parents: 5122
diff changeset
55 :" Tests may be run from a shadow directory, so an extra cd needs to be done to
08eb57382186 updated for version 7.4a.014
Bram Moolenaar <bram@vim.org>
parents: 5122
diff changeset
56 :" get above src/
08eb57382186 updated for version 7.4a.014
Bram Moolenaar <bram@vim.org>
parents: 5122
diff changeset
57 :if fnamemodify(getcwd(), ':t') != 'src' | cd ../.. | else | cd .. | endif
5108
cb0a5c9c0f9b updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents: 4736
diff changeset
58 :$put =''
cb0a5c9c0f9b updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents: 4736
diff changeset
59 :$put ='Testing findfile'
cb0a5c9c0f9b updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents: 4736
diff changeset
60 :$put =''
5122
46d6318d5b96 updated for version 7.3.1304
Bram Moolenaar <bram@vim.org>
parents: 5108
diff changeset
61 :set ssl
5108
cb0a5c9c0f9b updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents: 4736
diff changeset
62 :$put =findfile('test19.in','src/test*')
cb0a5c9c0f9b updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents: 4736
diff changeset
63 :exe "cd" cwd
cb0a5c9c0f9b updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents: 4736
diff changeset
64 :cd ..
cb0a5c9c0f9b updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents: 4736
diff changeset
65 :$put =findfile('test19.in','test*')
cb0a5c9c0f9b updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents: 4736
diff changeset
66 :$put =findfile('test19.in','testdir')
cb0a5c9c0f9b updated for version 7.3.1297
Bram Moolenaar <bram@vim.org>
parents: 4736
diff changeset
67 :exe "cd" cwd
4119
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
68 :/^results/,$w! test.out
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
69 :q!
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
70 ENDTEST
61bcafd8c648 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
71