From 0291d7751277b5d433d70cec33121d61290217d1 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Tue, 17 Mar 2015 22:31:21 -0500 Subject: [PATCH] Add List All Buffers as a vim til. --- README.md | 1 + vim/list-all-buffers.md | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 vim/list-all-buffers.md diff --git a/README.md b/README.md index 9139cf5..bc5eae9 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Close the Current Buffer](vim/close-the-current-buffer.md) - [Generate and Edit Rails Migration](vim/generate-and-edit-rails-migration.md) - [Head of File Name](vim/head-of-file-name.md) +- [List All Buffers](vim/list-all-buffers.md) - [Opening a URL](vim/opening-a-url.md) - [Preview Buffer](vim/previous-buffer.md) - [Quick File Info](vim/quick-file-info.md) diff --git a/vim/list-all-buffers.md b/vim/list-all-buffers.md new file mode 100644 index 0000000..5adbcb5 --- /dev/null +++ b/vim/list-all-buffers.md @@ -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.