Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我在 Vim 中设置以下选项,
set textwidth=80
文本将在 80 个字符处中断。这可行,但问题是如果逗号 (,) 在行尾,Vim 会缩进下一行。我能做些什么来避免这种行为?
你可能有 C 风格的缩进。:set nocindent应该做的伎俩
:set nocindent
编辑您的.vimrc并注释掉set fo=...。
.vimrc
set fo=...