blob: 602d9e55165de972485df07c8dfe65924d3181a4 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001Test for insert expansion
2
3:se cpt=.,w
4* add-expands (word from next line) from other window
5* add-expands (current buffer first)
6* Local expansion, ends in an empty line (unless it becomes a global expansion)
7* starts Local and switches to global add-expansion
8:se cpt=.,w,i
9* i-add-expands and switches to local
10* add-expands lines (it would end in an empty line if it didn't ignored it self)
11:se cpt=kXtestfile
12* checks k-expansion, and file expansion (use Xtest11 instead of test11,
13* because TEST11.OUT may match first on DOS)
14:se cpt=w
15* checks make_cyclic in other window
16:se cpt=u nohid
17* checks unloaded buffer expansion
18* checks adding mode abortion
19:se cpt=t,d
20* tag expansion, define add-expansion interrupted
21* t-expansion
22
23STARTTEST
24:so small.vim
25:se nocp viminfo+=nviminfo cpt=.,w ff=unix | $-2,$w!Xtestfile | set ff&
Bram Moolenaarc3c766e2017-03-08 22:55:19 +010026:set belloff=all
Bram Moolenaar1c7715d2005-10-03 22:02:18 +000027:se cot=
Bram Moolenaar071d4272004-06-13 20:20:40 +000028nO#include "Xtestfile"
29ru
30O
31
Bram Moolenaar071d4272004-06-13 20:20:40 +000032
33:se cpt=.,w,i
34kOM
35  
36:se cpt=kXtestfile
37:w Xtest11.one
38:w Xtest11.two
39OIXA
Bram Moolenaardd407342013-09-08 20:00:48 +020040:" use CTRL-X CTRL-F to complete Xtest11.one, remove it and then use
41:" CTRL-X CTRL-F again to verify this doesn't cause trouble.
42OXddk
Bram Moolenaar071d4272004-06-13 20:20:40 +000043:se cpt=w
44OST
45:se cpt=u nohid
46oOEN
47unl
48:se cpt=t,d def=^\\k* tags=Xtestfile notagbsearch
49O
50a
51:wq! test.out
52ENDTEST
53
54start of testfile
55run1
56run2
57end of testfile
58
59test11 36Gepeto /Tag/
60asd test11file 36G
61Makefile to run