如何在vim中停止换行 [英] How to stop line breaking in vim
本文介绍了如何在vim中停止换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我喜欢长线显示在不止一条终端线上;我不喜欢 vim 在我的实际文本中插入换行符.我应该更改 .vimrc 的哪个部分?
I like that the long lines are displayed over more than one terminal line; I don’t like that vim inserts newlines into my actual text. Which part of .vimrc I should change?
推荐答案
使用
:set wrap
视觉上换行,即该行仍然是一行文本,但 Vim 将其显示为多行.
To wrap lines visually, i.e. the line is still one line of text, but Vim displays it on multiple lines.
使用
:set nowrap
要将长行显示为一行(即您必须水平滚动才能看到整行).
To display long lines as just one line (i.e. you have to scroll horizontally to see the entire line).
这篇关于如何在vim中停止换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文