From c2876143a20e2aa551c753ff072c5955a8069fae Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Tue, 14 Apr 2015 22:57:58 -0500 Subject: [PATCH] Add Open an Unnamed Buffer as a vim til. --- README.md | 1 + vim/open-an-unnamed-buffer.md | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 vim/open-an-unnamed-buffer.md diff --git a/README.md b/README.md index 1c68a88..b990dcc 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Horizontal to Vertical and Back Again](vim/horizontal-to-vertical-and-back-again.md) - [List All Buffers](vim/list-all-buffers.md) - [NETRW Listing Styles](vim/netrw-listing-styles.md) +- [Open an Unnamed Buffer](vim/open-an-unnamed-buffer.md) - [Opening a URL](vim/opening-a-url.md) - [Previous Buffer](vim/previous-buffer.md) - [Previous Visual Selection](vim/previous-visual-selection.md) diff --git a/vim/open-an-unnamed-buffer.md b/vim/open-an-unnamed-buffer.md new file mode 100644 index 0000000..d1b2e2a --- /dev/null +++ b/vim/open-an-unnamed-buffer.md @@ -0,0 +1,11 @@ +# Open An Unnamed Buffer + +There are two ways (that I know of) to open an unnamed buffer. + +The first is before vim has even been launched. You can simply execute `vim` +from the command-line without any arguments. Follow that by invoking `:ls` +to see that the current and only buffer has *no name*. + +The second method is with a vim session that is already open. If you invoke +`:new`, a new buffer will be created that, like the first method, has *no +name*.