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:
@@ -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
|
||||
|
||||
@@ -34,5 +34,17 @@ a b
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
# 1 a
|
||||
# b
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
# x a
|
||||
# b
|
||||
}
|
||||
|
||||
|
||||
{ 1aa ^^2bb }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user