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

Add Split The Current Window as a vim til

This commit is contained in:
jbranchaud
2017-10-20 16:46:26 -05:00
parent 90ef40a56f
commit 1d74c5f993
2 changed files with 23 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
For a steady stream of TILs from a variety of rocketeers, checkout
[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 Matching Entries For Help](vim/show-matching-entries-for-help.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)
- [Swap Occurrences Of Two Words](vim/swap-occurrences-of-two-words.md)
- [Swapping Split Windows](vim/swapping-split-windows.md)

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