0
0
mirror of https://github.com/vim/vim.git synced 2025-11-08 10:27:32 -05:00

updated for version 7.3.552

Problem:    Formatting inside comments does not use the "2" flag in
            'formatoptions'.
Solution:   Support the "2" flag.  (Tor Perkins)
This commit is contained in:
Bram Moolenaar
2012-06-13 17:28:55 +02:00
parent a8596c4772
commit bfe3bf806a
7 changed files with 199 additions and 43 deletions

View File

@@ -50,6 +50,27 @@ a b
#a b
}
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

View File

@@ -34,5 +34,17 @@ a b
}
{
# 1 a
# b
}
{
# x a
# b
}
{ 1aa ^^2bb }