简体   繁体   English

vim中术语“缓冲区”和“窗口”的含义是什么?

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

Hi I'm new to vim and I don't know what buffers and windows are. 嗨,我是vim的新手,我不知道缓冲区和窗口是什么。 I can't find any tutorials on how to understand these two, so here are my questions: 我找不到任何关于如何理解这两个的教程,所以这是我的问题:

  1. What is a buffer and how does it differ from a window? 什么是缓冲区,它与窗口有什么不同?
  2. What can the buffer used for? 缓冲区可以用于什么? and the window (I'm assuming it's for editing only)? 和窗口(我假设它只是为了编辑)?
  3. Where can I find good tutorial on how to use buffers and windows? 我在哪里可以找到关于如何使用缓冲区和窗口的好教程?

does this answer your question? 这回答了你的问题了吗?

   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.

I think the best tutorial is vim's help file. 我认为最好的教程是vim的帮助文件。

EDIT 编辑

the above help info you could find by :help window 您可以通过:help window找到上述帮助信息:help window

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM