view src/testdir/test68.in @ 3058:4a7097153089 v7.3.301

updated for version 7.3.301 Problem: When 'smartindent' and 'copyindent' are set a Tab is used even though 'expandtab' is set. Solution: Do not insert Tabs. Add a test. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Wed, 07 Sep 2011 19:58:09 +0200
parents c3b5d3fe9404
children 443c50cd3e88
line wrap: on
line source

Test for text formatting.

Results of test68:

STARTTEST
:so small.vim
/^{/+1
:set noai tw=2 fo=t
gRa b
ENDTEST

{
    

}

STARTTEST
/^{/+1
:set ai tw=2 fo=tw
gqgqjjllab
ENDTEST

{
a  b  

a    
}

STARTTEST
/^{/+1
:set tw=3 fo=t
gqgqo
a 
ENDTEST

{
a 
}

STARTTEST
/^{/+1
:set tw=2 fo=tcq1 comments=:#
gqgqjgqgqo
a b
#a b
ENDTEST

{
a b
#a b
}

STARTTEST
/^{/+2
:set tw& fo=a
I^^
ENDTEST

{
   1aa
   2bb
}

STARTTEST
:g/^STARTTEST/.,/^ENDTEST/d
:1;/^Results/,$wq! test.out
ENDTEST