I want some text I am typing in vim to开发者_Python百科 automatically break into a new line after so many characters have been typed, rather than letting me type out lines of infinite length. Is this possible?
The textwidth option does that.
:set tw=78
As the help points out, you may want to check the option called
formatoptions or fo for short. This will provide you more control
over formatting aspects. The table of options is also helpful (help under
fo-table tag).
加载中,请稍侯......
精彩评论