1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add List All Buffers as a vim til.

This commit is contained in:
jbranchaud
2015-03-17 22:31:21 -05:00
parent a813fb6a62
commit 0291d77512
2 changed files with 13 additions and 0 deletions

12
vim/list-all-buffers.md Normal file
View File

@@ -0,0 +1,12 @@
# List All Buffers
The `:ls` command will list the buffers you have open. What vim doesn't tell
you though is that there are some unlisted buffers that it isn't displaying.
To see *all* of the buffers, you can use `:ls!`. According to the vim help
file:
> When the [!] is included the list will show unlisted buffers
> (the term "unlisted" is a bit confusing then...).
This reveals buffers for `netrw`, `:help` files, etc. This helps explain the
sometimes sporadic numbering that vim uses for buffers.