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