簡體   English   中英

vim中術語“緩沖區”和“窗口”的含義是什么?

[英]What is the meaning of the terms “buffer” and “window” in vim?

嗨,我是vim的新手,我不知道緩沖區和窗口是什么。 我找不到任何關於如何理解這兩個的教程,所以這是我的問題:

  1. 什么是緩沖區,它與窗口有什么不同?
  2. 緩沖區可以用於什么? 和窗口(我假設它只是為了編輯)?
  3. 我在哪里可以找到關於如何使用緩沖區和窗口的好教程?

這回答了你的問題了嗎?

   A buffer is the in-memory text of a file.
   A window is a viewport on a buffer.
   A tab page is a collection of windows.

A window is a viewport onto a buffer.  You can use multiple windows on one
buffer, or several windows on different buffers.

A buffer is a file loaded into memory for editing.  The original file remains
unchanged until you write the buffer to the file.

我認為最好的教程是vim的幫助文件。

編輯

您可以通過:help window找到上述幫助信息:help window

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM