views:

303

answers:

2

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?

+10  A: 

You probably have C style indenting on. :set nocindent should do the trick

Petr Topol
Aaaah, great! Thanks!
Fu86
A: 

edit you .vimrc and comment "set fo=..."

Miuler