1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Add Close All Other Splits as a vim til

This commit is contained in:
jbranchaud
2016-11-22 10:25:23 -06:00
parent f580c8ee9b
commit 87f2fedf95
2 changed files with 14 additions and 1 deletions

View File

@@ -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)

View File

@@ -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.