纳米世界包裹没有艰难的休息


3

我如何使用nano edtior来显示文本的包装,但没有文本被行尾字符打破?如果我关闭包装我只能查看一行文本,但如果我有它,我得到一个/ n字符文本被包装。

Answers:


3

您可以将以下内容添加到您的$HOME/.nanorc

## Enable soft line wrapping (AKA full line display).
set softwrap

还添加set nowrap禁用文本的破坏性硬包装
mwfearnley
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.