Skip to content

Commit 1d74c5f

Browse files
committed
Add Split The Current Window as a vim til
1 parent 90ef40a commit 1d74c5f

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
1010
For a steady stream of TILs from a variety of rocketeers, checkout
1111
[til.hashrocket.com](https://til.hashrocket.com/).
1212

13-
_577 TILs and counting..._
13+
_578 TILs and counting..._
1414

1515
---
1616

@@ -658,6 +658,7 @@ _577 TILs and counting..._
658658
- [Show All Syntax Highlighting Rules](vim/show-all-syntax-highlighting-rules.md)
659659
- [Show Matching Entries For Help](vim/show-matching-entries-for-help.md)
660660
- [Split Different](vim/split-different.md)
661+
- [Split The Current Window](vim/split-the-current-window.md)
661662
- [Splitting For New Files](vim/splitting-for-new-files.md)
662663
- [Swap Occurrences Of Two Words](vim/swap-occurrences-of-two-words.md)
663664
- [Swapping Split Windows](vim/swapping-split-windows.md)

vim/split-the-current-window.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Split The Current Window
2+
3+
Generally when I want to open up a buffer in a window split, I use `:sp` or
4+
`:vsp` and type out the filename. It may be a bit more convenient to use
5+
window commands to create the splits.
6+
7+
To open a horizontal split:
8+
9+
```
10+
Ctrl-w s
11+
```
12+
13+
To open a vertical split:
14+
15+
```
16+
Ctrl-w v
17+
```
18+
19+
With the split made, you can use `Ctrl-o`/`Ctrl-i`,
20+
[BufExplorer](https://github.com/jlanzarotta/bufexplorer), or whatever way
21+
you like to navigate between buffers.

0 commit comments

Comments
 (0)