From 87f2fedf95fc5e554e2161aa9fb5a05f592a5fdd Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Tue, 22 Nov 2016 10:25:23 -0600 Subject: [PATCH] Add Close All Other Splits as a vim til --- README.md | 3 ++- vim/close-all-other-splits.md | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 vim/close-all-other-splits.md diff --git a/README.md b/README.md index 3764301..d218de7 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really warrant a full blog post. These are mostly things I learn by pairing with smart people at [Hashrocket](http://hashrocket.com/). -_485 TILs and counting..._ +_486 TILs and counting..._ --- @@ -477,6 +477,7 @@ _485 TILs and counting..._ - [Case-Insensitive Substitution](vim/case-insensitive-substitution.md) - [Center The Cursor](vim/center-the-cursor.md) - [Check Your Current Color Scheme](vim/check-your-current-color-scheme.md) +- [Close All Other Splits](vim/close-all-other-splits.md) - [Close All Other Windows](vim/close-all-other-windows.md) - [Close the Current Buffer](vim/close-the-current-buffer.md) - [Coerce The Current Filetype](vim/coerce-the-current-filetype.md) diff --git a/vim/close-all-other-splits.md b/vim/close-all-other-splits.md new file mode 100644 index 0000000..e4da7d3 --- /dev/null +++ b/vim/close-all-other-splits.md @@ -0,0 +1,12 @@ +# Close All Other Splits + +If you have a couple other splits open, but you only want the window in +focus, you may find yourself doing some finger gymnastics to navigate to +those other split windows to close out of them. + +There is an easier way. + +The Ex command `:only` will close all other splits, excluding the window +that is currently in focus. + +See `:h :only` for more details.