标签:vim real-lines
Unlike many text editors, Vim makes a distinction between real lines and display lines. When the ‘wrap’ setting is enabled (and it’s on by default), each line of text that exceeds the width of the window will display as wrapped, ensuring that no text is truncated from view. As a result, a single line in the file may be represented by multiple lines on the display.
在Vim 中区分real lines和display lines。对于一个文本,如果一行文字的长度大于显示窗口的宽度,就会自动换为下一行以免被截断。这样原本的单行(real lines)就变为了多行(display lines)。
The easiest way to tell the difference between real lines and display lines is by enabling the ‘number’ setting. Lines that begin with a number correspond to the real lines, which may span one or more display lines.
在vim 的normal模式下中输入命令
:set number
就可以显示文本的行号。以行号开头的行就是real lines
Vim中分别提供了直接在real lines和display lines中快速上下移动以及在行首和行尾快速跳转的快捷键。
[Practical.Vim(2012.9)].Drew.Neil.Tip47 学习摘要
标签:vim real-lines
原文地址:http://blog.csdn.net/wdy_yx/article/details/45179575