mirror of
https://github.com/jbranchaud/til
synced 2026-01-07 17:18:02 +00:00
Add Split The Current Window as a vim til
This commit is contained in:
@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
|||||||
For a steady stream of TILs from a variety of rocketeers, checkout
|
For a steady stream of TILs from a variety of rocketeers, checkout
|
||||||
[til.hashrocket.com](https://til.hashrocket.com/).
|
[til.hashrocket.com](https://til.hashrocket.com/).
|
||||||
|
|
||||||
_577 TILs and counting..._
|
_578 TILs and counting..._
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -658,6 +658,7 @@ _577 TILs and counting..._
|
|||||||
- [Show All Syntax Highlighting Rules](vim/show-all-syntax-highlighting-rules.md)
|
- [Show All Syntax Highlighting Rules](vim/show-all-syntax-highlighting-rules.md)
|
||||||
- [Show Matching Entries For Help](vim/show-matching-entries-for-help.md)
|
- [Show Matching Entries For Help](vim/show-matching-entries-for-help.md)
|
||||||
- [Split Different](vim/split-different.md)
|
- [Split Different](vim/split-different.md)
|
||||||
|
- [Split The Current Window](vim/split-the-current-window.md)
|
||||||
- [Splitting For New Files](vim/splitting-for-new-files.md)
|
- [Splitting For New Files](vim/splitting-for-new-files.md)
|
||||||
- [Swap Occurrences Of Two Words](vim/swap-occurrences-of-two-words.md)
|
- [Swap Occurrences Of Two Words](vim/swap-occurrences-of-two-words.md)
|
||||||
- [Swapping Split Windows](vim/swapping-split-windows.md)
|
- [Swapping Split Windows](vim/swapping-split-windows.md)
|
||||||
|
|||||||
21
vim/split-the-current-window.md
Normal file
21
vim/split-the-current-window.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Split The Current Window
|
||||||
|
|
||||||
|
Generally when I want to open up a buffer in a window split, I use `:sp` or
|
||||||
|
`:vsp` and type out the filename. It may be a bit more convenient to use
|
||||||
|
window commands to create the splits.
|
||||||
|
|
||||||
|
To open a horizontal split:
|
||||||
|
|
||||||
|
```
|
||||||
|
Ctrl-w s
|
||||||
|
```
|
||||||
|
|
||||||
|
To open a vertical split:
|
||||||
|
|
||||||
|
```
|
||||||
|
Ctrl-w v
|
||||||
|
```
|
||||||
|
|
||||||
|
With the split made, you can use `Ctrl-o`/`Ctrl-i`,
|
||||||
|
[BufExplorer](https://github.com/jlanzarotta/bufexplorer), or whatever way
|
||||||
|
you like to navigate between buffers.
|
||||||
Reference in New Issue
Block a user