How to stop line breaking in vim
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: 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? 回答1: Use : set wrap To wrap lines visually, i.e. the line is still one line of text, but Vim displays it on multiple lines. Use : set nowrap To display long lines as just one line (i.e. you have to scroll horizontally to see the entire line). 回答2: Here's what you want: " this enables " visual " wrapping set wrap " this turns off physical line wrapping ( ie :