I'm running gVim 7.4 on Windows 7.
I'm editing a text file and I insert text like the following:
1 - public SomeResult GenerateResult(IInput input, Action<string> forEachEventAction)
If I add a `
before public
and after the closing parenthesis then a new line is automatically inserted, resulting in this:
1 - `public SomeResult GenerateResult(IInput input, Action<string>
forEachEventAction)`
Interestingly, my real text (code) is split into several lines, not just two, tho the only difference from the above is that the identifiers are much longer.
:set all
includes:
...
formatoptions=tcq
...
textwidth=78
:h autoformat
andset formatoptions?