blob: aafa34e521445afcf8fdec25ebbb01daa384dabd [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001Tests for "r<Tab>" with 'smarttab' and 'expandtab' set/not set.
Bram Moolenaar83dadaf2012-12-12 17:33:32 +01002Also test that dv_ works correctly
Bram Moolenaar071d4272004-06-13 20:20:40 +00003
4STARTTEST
Bram Moolenaar868272f2011-09-08 23:22:40 +02005:so small.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +00006:set smarttab expandtab ts=8 sw=4
Bram Moolenaarba79b4e2008-06-20 15:53:31 +00007:" make sure that backspace works, no matter what termcap is used
8:set t_kD=x7f t_kb=x08
Bram Moolenaar071d4272004-06-13 20:20:40 +00009/some
10r :set noexpandtab
11/other
12r
13:" Test replacing with Tabs and then backspacing to undo it
140wR 
15:" Test replacing with Tabs
160wR 
Bram Moolenaarc42e7ed2011-09-07 19:58:09 +020017:" Test that copyindent works with expandtab set
18:set expandtab smartindent copyindent ts=8 sw=8 sts=8
Bram Moolenaar868272f2011-09-08 23:22:40 +020019o{
Bram Moolenaar83dadaf2012-12-12 17:33:32 +010020x:set nosol
21/Second line/
22fwdv_:?^start?,$w! test.out
Bram Moolenaar071d4272004-06-13 20:20:40 +000023:qa!
24ENDTEST
25
26start text
27 some test text
28test text
29 other test text
30 a cde
31 f ghi
32test text
Bram Moolenaar83dadaf2012-12-12 17:33:32 +010033 Second line beginning with whitespace