1Tests for "r<Tab>" with 'smarttab' and 'expandtab' set/not set.
2
3STARTTEST
4:set smarttab expandtab ts=8 sw=4
5:" make sure that backspace works, no matter what termcap is used
6:set t_kD=x7f t_kb=x08
7/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			
15:?^start?,$w! test.out
16:qa!
17ENDTEST
18
19start text
20		some test text
21test text
22		other test text
23    a cde
24    f ghi
25test text
26