Expected behavior: When typing gq in command mode the line should reformat itself and insert line breaks where appropriate so it looks like a nice paragraph.
Actual behavior: A line will format neatly into a paragraph UNLESS the line ends with a comma, in which case the lines below the line ending in a comma will all get indented 9-10 spaces. The end result looks like this (copy pasted from a text file after it was formatted with vim touch)...
Lorem ipsum lorem ipsum lorem ipsum lorem ipsum. Lorem ipsum lorem ipsum lorem
ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum. Lorem ipsum
lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem,
ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem
ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem
ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem
ipsum
The only entries in my vimrc are set autoindent and set formatoptions=tcqn. The problem I described above occurs in visual mode (when formatting highlighted text) as well.
Expected behavior: When typing
gq
in command mode the line should reformat itself and insert line breaks where appropriate so it looks like a nice paragraph.Actual behavior: A line will format neatly into a paragraph UNLESS the line ends with a comma, in which case the lines below the line ending in a comma will all get indented 9-10 spaces. The end result looks like this (copy pasted from a text file after it was formatted with vim touch)...
The only entries in my vimrc are
set autoindent
andset formatoptions=tcqn
. The problem I described above occurs in visual mode (when formatting highlighted text) as well.