blob: ff6e255174f33c8c60115c0b216fb0247b45f3fe [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001Tests for "r<Tab>" with 'smarttab' and 'expandtab' set/not set.
2
3STARTTEST
4:set smarttab expandtab ts=8 sw=4
Bram Moolenaarba79b4e2008-06-20 15:53:31 +00005:" make sure that backspace works, no matter what termcap is used
6:set t_kD=x7f t_kb=x08
Bram Moolenaar071d4272004-06-13 20:20:40 +00007/some
8r :set noexpandtab
9/other
10r
11:" Test replacing with Tabs and then backspacing to undo it
120wR 
13:" Test replacing with Tabs
140wR 
Bram Moolenaarc42e7ed2011-09-07 19:58:09 +020015:" 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 Moolenaar071d4272004-06-13 20:20:40 +000018:?^start?,$w! test.out
19:qa!
20ENDTEST
21
22start text
23 some test text
24test text
25 other test text
26 a cde
27 f ghi
28test text