vim sets the width of a line of code
天蓬老师
天蓬老师 2017-05-16 16:38:11
0
4
868

I don’t want to write too long code in one line. I want to automatically wrap the line after writing a certain width. How should I configure this?

textwidth=90 has been set

But it does not take effect in the editor (vim has been restarted).

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(4)
阿神

It feels bad to have automatic line wrapping. I used a vertical bar to set the line width, which is equivalent to a reminder. https://github.com/ruanyl/bigvim/blob/master/vimrc#L106

曾经蜡笔没有小新

set columns=40

阿神
:set tw?

What does it show?

仅有的幸福

:help wrap

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template