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