@@ -19,14 +19,28 @@ Whenever I write
19
19
```
20
20
:something
21
21
```
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 )
23
23
24
- ## Use ctrl+c to switch to normal mode
24
+ #### Use ctrl+c to switch to normal mode
25
25
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
26
26
27
- ## Split windows and trawerse between them
27
+ Famous leave vim jokes assume arouse because users can't enter normal mode after editing.
28
28
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
30
44
31
45
```
32
46
:vsplit
@@ -39,21 +53,22 @@ ctrl+w s
39
53
```
40
54
(a bit counterintuitive I agree)
41
55
42
- ### traversing between windows and resize
56
+ ### navigating between windows and resize
43
57
44
- To move around you can use
58
+ To move around use
45
59
46
60
```
47
61
ctrl+w [arrow key]
48
62
```
63
+ command.
49
64
50
- to resize current window
65
+ #### Resizing
51
66
52
- increase size:
67
+ increase size
53
68
```
54
69
ctrl+w +
55
70
```
56
- decrease size:
71
+ decrease size
57
72
```
58
73
ctrl+w +
59
74
```
@@ -70,7 +85,7 @@ ctrl+w _
70
85
```
71
86
72
87
73
- ## Use decent plugin manager
88
+ ### Use decent plugin manager
74
89
75
90
One modern and easy to use vim plugin manager is [ vim-plug] ( https://github.com/junegunn/vim-plug )
76
91
@@ -90,9 +105,9 @@ Vim has build in terminal plugin. You can open it with
90
105
```
91
106
:term
92
107
```
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.
94
109
95
- If you want terminal below current window use:
110
+ If you want terminal below current window use
96
111
```
97
112
:bel term
98
113
```
@@ -107,12 +122,12 @@ If you coppied some text in different file into default register (e.g. by using
107
122
ctrl+w ""
108
123
```
109
124
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
111
126
112
127
113
128
#### Copy from terminal to editor
114
129
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
116
131
117
132
```
118
133
ctrl+w N
0 commit comments