Vim textwidth comma indent problem

时光总嘲笑我的痴心妄想 提交于 2020-01-10 19:30:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!