Skip to content

Commit 60ef488

Browse files
committed
fix: typos and style
1 parent 554e4b5 commit 60ef488

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

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

+29-14
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,28 @@ Whenever I write
1919
```
2020
:something
2121
```
22-
I mean invoking *something* command in normal mode (pressing ctrl+c then type :something)
22+
I mean invoking *something* command in so called normal mode (pressing ctrl+c then typing :something)
2323

24-
## Use ctrl+c to switch to normal mode
24+
#### Use ctrl+c to switch to normal mode
2525
There are two ways to switch to normal mode one is to use escape key, but often more convenienient is to use ctrl+c shortcut
2626

27-
## Split windows and trawerse between them
27+
Famous leave vim jokes assume arouse because users can't enter normal mode after editing.
2828

29-
The magic command is to split vertically
29+
To quit the editor you need to do in normal mode
30+
31+
```
32+
:q
33+
```
34+
or if multiple windows are opened close them all
35+
36+
```
37+
:qa
38+
```
39+
40+
41+
### Split windows and navigate between them
42+
43+
The magic command to split vertically is
3044

3145
```
3246
:vsplit
@@ -39,21 +53,22 @@ ctrl+w s
3953
```
4054
(a bit counterintuitive I agree)
4155

42-
### traversing between windows and resize
56+
### navigating between windows and resize
4357

44-
To move around you can use
58+
To move around use
4559

4660
```
4761
ctrl+w [arrow key]
4862
```
63+
command.
4964

50-
to resize current window
65+
#### Resizing
5166

52-
increase size:
67+
increase size
5368
```
5469
ctrl+w +
5570
```
56-
decrease size:
71+
decrease size
5772
```
5873
ctrl+w +
5974
```
@@ -70,7 +85,7 @@ ctrl+w _
7085
```
7186

7287

73-
## Use decent plugin manager
88+
### Use decent plugin manager
7489

7590
One modern and easy to use vim plugin manager is [vim-plug](https://github.com/junegunn/vim-plug)
7691

@@ -90,9 +105,9 @@ Vim has build in terminal plugin. You can open it with
90105
```
91106
:term
92107
```
93-
in normal mode. This will splitt your current edit window and create terminal in upper window.
108+
in the normal mode. This will split your current editor window and create terminal in the upper window.
94109

95-
If you want terminal below current window use:
110+
If you want terminal below current window use
96111
```
97112
:bel term
98113
```
@@ -107,12 +122,12 @@ If you coppied some text in different file into default register (e.g. by using
107122
ctrl+w ""
108123
```
109124

110-
> note: it is possible to copy from other registers as well. To list registers use :register command
125+
> note: it is possible to copy from other registers as well. To list registers use the :register command
111126
112127

113128
#### Copy from terminal to editor
114129

115-
It's possible to switch terminal into normal read-only editor by pressing:
130+
It's possible to switch terminal into normal read-only editor by pressing
116131

117132
```
118133
ctrl+w N

0 commit comments

Comments
 (0)