Vim textwidth comma indent problem

2019-02-13 13:12发布

问题:

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.