blob: cbb4dd2c22ff15d7291bc0e776aecef93a83f8e4 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001Tests for "r<Tab>" with 'smarttab' and 'expandtab' set/not set.
2
3STARTTEST
Bram Moolenaar868272f2011-09-08 23:22:40 +02004:so small.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +00005:set smarttab expandtab ts=8 sw=4
Bram Moolenaarba79b4e2008-06-20 15:53:31 +00006:" make sure that backspace works, no matter what termcap is used
7:set t_kD=x7f t_kb=x08
Bram Moolenaar071d4272004-06-13 20:20:40 +00008/some
9r :set noexpandtab
10/other
11r
12:" Test replacing with Tabs and then backspacing to undo it
130wR 
14:" Test replacing with Tabs
150wR 
Bram Moolenaarc42e7ed2011-09-07 19:58:09 +020016:" Test that copyindent works with expandtab set
17:set expandtab smartindent copyindent ts=8 sw=8 sts=8
Bram Moolenaar868272f2011-09-08 23:22:40 +020018o{
19x:?^start?,$w! test.out
Bram Moolenaar071d4272004-06-13 20:20:40 +000020:qa!
21ENDTEST
22
23start text
24 some test text
25test text
26 other test text
27 a cde
28 f ghi
29test text