[Practical.Vim(2012.9)].Drew.Neil.Tip47 學習摘要

來源:互聯網
上載者:User

標籤:vim   real-lines   

Distinguish Between Real Lines and Display 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 linesdisplay 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 linesdisplay lines中快速上下移動以及在行首和行尾快速跳轉的快速鍵。

[Practical.Vim(2012.9)].Drew.Neil.Tip47 學習摘要

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.