view src/testdir/test68.in @ 10930:126405b39964 v8.0.0354

patch 8.0.0354: test to check that setting termcap key fails sometimes commit https://github.com/vim/vim/commit/1c410400fad79068b16dc4c6c7a023463a0858cf Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 23 15:20:03 2017 +0100 patch 8.0.0354: test to check that setting termcap key fails sometimes Problem: Test to check that setting termcap key fails sometimes. Solution: Check for "t_k1" to exist. (Christian Brabandt, closes https://github.com/vim/vim/issues/1459)
author Christian Brabandt <cb@256bit.org>
date Thu, 23 Feb 2017 15:30:05 +0100
parents b9c1c1f4cda9
children
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
/^{/+1
:set tw=5 fo=tcn comments=:#
A bjA b
ENDTEST

{
  1 a
# 1 a
}

STARTTEST
/^{/+3
:set tw=5 fo=t2a si
i  A_
ENDTEST

{

  x a
  b
 c

}

STARTTEST
/^{/+1
:set tw=5 fo=qn comments=:#
gwap
ENDTEST

{
# 1 a b
}

STARTTEST
/^{/+1
:set tw=5 fo=q2 comments=:#
gwap
ENDTEST

{
# x
#   a b
}

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

{
   1aa
   2bb
}

STARTTEST
/mno pqr/
:setl tw=20 fo=an12wcq comments=s1:/*,mb:*,ex:*/
A vwx yz
ENDTEST

/* abc def ghi jkl 
 *    mno pqr stu
 */

STARTTEST
/^#/
:setl tw=12 fo=tqnc comments=:#
A foobar
ENDTEST

# 1 xxxxx

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