Skip to content

Commit 5f4fe67

Browse files
committed
feat: update split commands
1 parent 62ddec4 commit 5f4fe67

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

blog/2024-06-22-vim-tips.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,24 @@ or if multiple windows are opened close them all
3939

4040
### Split windows and navigate between them
4141

42-
The magic command to split vertically is
43-
42+
The magic command to split vertically is :vsplit command
43+
```
44+
:vs
45+
```
46+
or
4447
```
45-
:vsplit
48+
ctrl + w v
4649
```
4750

48-
and to split horizontally
51+
and to split horizontally use :split
4952

53+
```
54+
:sp
55+
```
56+
or
5057
```
5158
ctrl+w s
5259
```
53-
(a bit counterintuitive I agree)
5460

5561
### Navigating between windows and resize
5662

0 commit comments

Comments
 (0)