-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path01navigatingControls.txt
53 lines (34 loc) · 1.06 KB
/
01navigatingControls.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
01. Navigating controls: h, j, k, l, ESC, [0-9]
---------------
Hello!
Hola uwu
esto es otra prueba
Vim is a "modal editor," meaning it has different modes.
Vim opens in COMMAND mode.
If you ever find Vim in a different mode (or if it's acting wonky),
simply press ESC to re-activate COMMAND mode.
Great! We'll start with basic navigation.
To move around in Vim:
l - move right
h - move left
j - move down
k - move up
Time to practice!
go right (l) go left (h)
move down (j)
let's move back up (k)
Stray away from the [[arrow keys]]!
Yay, we are learning
how to navigate with Vim
This is so much fun!
We can make this more efficient using a numerical modifier.
Simply precede the command with an value [0-9].
For example, 4h moves 4 characters to the left.
Quit by typing ":q!"
The ":" activates ex commands, which we will cover in more advanced tutorials.
The "q" means to quit.
The "!" means to quit without any unsaved changes.
Review Questions:
1) Why are we learning Vim?
Solutions:
1) It's faster, lightweight and available on almost every computer.