Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have a Haskell file on VIM with a Haskell-style comment block:
When I select that comment block on visual mode...
And press gq, I expected VIM to format my comment to something like:
But instead, this is what VIM does:
How can I fix it?
:filetype plugin indent on
"filetype plugin on
This appends :-- to the value of comments, which adds -- as a comment line indicator. The format of this option is described by :help format-comments.
Required, but never shown