mirror of
https://github.com/mhinz/vim-galore.git
synced 2025-02-24 01:59:28 +08:00
Add "Buffers, windows, tabs?"
This commit is contained in:
parent
402e09ce5b
commit
abc3ace45e
30
README.md
30
README.md
@ -3,6 +3,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
#### Basics
|
#### Basics
|
||||||
|
- [Buffers, windows, tabs?](#buffers-windows-tabs)
|
||||||
- [Colorschemes?](#colorschemes)
|
- [Colorschemes?](#colorschemes)
|
||||||
|
|
||||||
#### Usage
|
#### Usage
|
||||||
@ -12,6 +13,35 @@
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
#### Buffers, windows, tabs?
|
||||||
|
|
||||||
|
Vim is a text editor. Everytime text is shown, the text is part of a **buffer**.
|
||||||
|
Each file will be opened in its own buffer. Plugins show stuff in their own
|
||||||
|
buffers etc.
|
||||||
|
|
||||||
|
Buffers have many attributes, e.g. whether the text it contains is modifiable,
|
||||||
|
or whether it is associated with a file and thus needs to be synchronized to
|
||||||
|
disk on saving.
|
||||||
|
|
||||||
|
**Windows** are viewports _into_ buffers. If you want to view several files at
|
||||||
|
the same time or even different locations of the same file, you use windows.
|
||||||
|
|
||||||
|
And please, please don't call them _splits_. You can split a window in two, but
|
||||||
|
that doesn't make them _splits_.
|
||||||
|
|
||||||
|
Windows can be split vertically or horizontally and the heights and widths of
|
||||||
|
existing windows can be altered, too. Therefore you can use whatever window
|
||||||
|
layout you prefer.
|
||||||
|
|
||||||
|
A **tab page** (or just tab) is a collection of windows. Thus, if you want to
|
||||||
|
use multiple window layouts, use tabs.
|
||||||
|
|
||||||
|
Putting it in a nutshell, if you start Vim without arguments, you'll have one
|
||||||
|
tab page that holds one window that shows one buffer.
|
||||||
|
|
||||||
|
By the way, the buffer list is global and you can access any buffer from any
|
||||||
|
tab.
|
||||||
|
|
||||||
#### Colorschemes?
|
#### Colorschemes?
|
||||||
|
|
||||||
Colorschemes are the way to style your Vim. Vim consists of many components and
|
Colorschemes are the way to style your Vim. Vim consists of many components and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user