Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | Test 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 | |
| 23 | STARTTEST |
| 24 | :so small.vim |
| 25 | :se nocp viminfo+=nviminfo cpt=.,w ff=unix | $-2,$w!Xtestfile | set ff& |
Bram Moolenaar | 1c7715d | 2005-10-03 22:02:18 +0000 | [diff] [blame] | 26 | :se cot= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 27 | nO#include "Xtestfile" |
| 28 | ru |
| 29 | O |
| 30 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 31 | |
| 32 | :se cpt=.,w,i |
| 33 | kOM |
| 34 | |
| 35 | :se cpt=kXtestfile |
| 36 | :w Xtest11.one |
| 37 | :w Xtest11.two |
| 38 | OIXA |
Bram Moolenaar | dd40734 | 2013-09-08 20:00:48 +0200 | [diff] [blame] | 39 | :" use CTRL-X CTRL-F to complete Xtest11.one, remove it and then use |
| 40 | :" CTRL-X CTRL-F again to verify this doesn't cause trouble. |
| 41 | OXddk |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 42 | :se cpt=w |
| 43 | OST |
| 44 | :se cpt=u nohid |
| 45 | oOEN |
| 46 | unl |
| 47 | :se cpt=t,d def=^\\k* tags=Xtestfile notagbsearch |
| 48 | O |
| 49 | a |
| 50 | :wq! test.out |
| 51 | ENDTEST |
| 52 | |
| 53 | start of testfile |
| 54 | run1 |
| 55 | run2 |
| 56 | end of testfile |
| 57 | |
| 58 | test11 36Gepeto /Tag/ |
| 59 | asd test11file 36G |
| 60 | Makefile to run |