Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | Tests for "r<Tab>" with 'smarttab' and 'expandtab' set/not set. |
Bram Moolenaar | 83dadaf | 2012-12-12 17:33:32 +0100 | [diff] [blame^] | 2 | Also test that dv_ works correctly |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3 | |
| 4 | STARTTEST |
Bram Moolenaar | 868272f | 2011-09-08 23:22:40 +0200 | [diff] [blame] | 5 | :so small.vim |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6 | :set smarttab expandtab ts=8 sw=4 |
Bram Moolenaar | ba79b4e | 2008-06-20 15:53:31 +0000 | [diff] [blame] | 7 | :" make sure that backspace works, no matter what termcap is used |
| 8 | :set t_kD=x7f t_kb=x08 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9 | /some |
| 10 | r :set noexpandtab |
| 11 | /other |
| 12 | r |
| 13 | :" Test replacing with Tabs and then backspacing to undo it |
| 14 | 0wR |
| 15 | :" Test replacing with Tabs |
| 16 | 0wR |
Bram Moolenaar | c42e7ed | 2011-09-07 19:58:09 +0200 | [diff] [blame] | 17 | :" Test that copyindent works with expandtab set |
| 18 | :set expandtab smartindent copyindent ts=8 sw=8 sts=8 |
Bram Moolenaar | 868272f | 2011-09-08 23:22:40 +0200 | [diff] [blame] | 19 | o{ |
Bram Moolenaar | 83dadaf | 2012-12-12 17:33:32 +0100 | [diff] [blame^] | 20 | x:set nosol |
| 21 | /Second line/ |
| 22 | fwdv_:?^start?,$w! test.out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 23 | :qa! |
| 24 | ENDTEST |
| 25 | |
| 26 | start text |
| 27 | some test text |
| 28 | test text |
| 29 | other test text |
| 30 | a cde |
| 31 | f ghi |
| 32 | test text |
Bram Moolenaar | 83dadaf | 2012-12-12 17:33:32 +0100 | [diff] [blame^] | 33 | Second line beginning with whitespace |