问题
If i set the following option in Vim,
set textwidth=80
the text will break at 80 characters. This works, but the problem is if a comma (,) is on the end of a line, Vim indents the next line. What can I do to avoid this behaviour?
回答1:
You probably have C style indenting on. :set nocindent
should do the trick
回答2:
Edit your .vimrc
and comment set fo=...
out.
来源:https://stackoverflow.com/questions/1516054/vim-textwidth-comma-indent-problem