Greetings all,
Given these settings:
:set tw=20
:set comments=b:#
:set formatoptions=tcq2
:set smartindent
... and given this text:
NOTE: blah blah
blah blah
# NOTE: blah blah
# blah blah
If I do gq{motion} on the top paragraph, formatting is unchanged (as
expected), however, gq{motion} (or gwap) on the bottom paragraph
results in this new formatting:
# NOTE: blah blah
# blah blah
So, even though I have both the 2 and q formatoptions, the second
line's indentation seems to be ignored when within a comment block.
I would prefer if it could be honored in this case as well. Is that
possible...?
Interestingly, the t and c formatoptions (for auto-wrap) are working
properly with formatoptions+=2 in both paragraphs...
Thanks for your consideration.
- Tor
PS - I'm running Vim 7.2.445 on Debian Linux, but I see the same
behaviour in Vim 7.3.154 on OpenBSD...
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Friday, June 1, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment