mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Add Close All Other Splits as a vim til
This commit is contained in:
@@ -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
|
warrant a full blog post. These are mostly things I learn by pairing with
|
||||||
smart people at [Hashrocket](http://hashrocket.com/).
|
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)
|
- [Case-Insensitive Substitution](vim/case-insensitive-substitution.md)
|
||||||
- [Center The Cursor](vim/center-the-cursor.md)
|
- [Center The Cursor](vim/center-the-cursor.md)
|
||||||
- [Check Your Current Color Scheme](vim/check-your-current-color-scheme.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 All Other Windows](vim/close-all-other-windows.md)
|
||||||
- [Close the Current Buffer](vim/close-the-current-buffer.md)
|
- [Close the Current Buffer](vim/close-the-current-buffer.md)
|
||||||
- [Coerce The Current Filetype](vim/coerce-the-current-filetype.md)
|
- [Coerce The Current Filetype](vim/coerce-the-current-filetype.md)
|
||||||
|
|||||||
12
vim/close-all-other-splits.md
Normal file
12
vim/close-all-other-splits.md
Normal 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.
|
||||||
Reference in New Issue
Block a user