On 3/3/2017 9:55 AM, Gary Johnson wrote:
:verbose set commentsOn 2017-03-03, Barry Gold wrote:On 3/2/2017 8:11 PM, Erik Christiansen wrote:On 02.03.17 09:07, Barry Gold wrote:I want to use word-wrap on my C++ comments. My .vimrc file contains set tw=75 set fo+=tcjro But when I type a long C++ style comment, I get // This object contains the logic (code and data) for making the first pass over the inputHere, word wrapping on just typing long lines auto-inserts the comment leader if fo=croqjlt, but not with fo=qrjt, which I use in composing emails. You may need an fo tweak, if it is not being changed by plugins. (We could test your fo setting if its full state were known. What does ":set fo ?" give?)formatoptions=croqjlt (after I made the change you recommended) But it's _still_ not putting in commend leaders on linewrap.
What about the results of this? :verbose set comments? The string of comma-separated values must include :// or Vim won't recognize // as a comment leader.
E519: Option not supported: comments
-- On Beta, we'd have earrings for that. You could buy them in any jewelry store. http://www.conchord.org/xeno/bdgsig.html
No comments:
Post a Comment