Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim textwidth comma indent problem

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?

like image 326
f00860 Avatar asked Oct 04 '09 09:10

f00860


Video Answer


1 Answers

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

like image 54
Petr Topol Avatar answered Sep 28 '22 11:09

Petr Topol