1
00:00:00,030 --> 00:00:02,020
- [Instructor] Let's open sherlock.txt,

2
00:00:02,020 --> 00:00:06,000
vim sherlock.txt.

3
00:00:06,000 --> 00:00:07,010
You're in normal mode

4
00:00:07,010 --> 00:00:08,090
and at the beginning of the file.

5
00:00:08,090 --> 00:00:11,040
To move around, you can use the arrow keys.

6
00:00:11,040 --> 00:00:13,010
However, this will force you

7
00:00:13,010 --> 00:00:16,030
to move your fingers from the natural typing position.

8
00:00:16,030 --> 00:00:17,060
Instead of the arrow keys,

9
00:00:17,060 --> 00:00:20,080
you can use the H, J, K, L keys.

10
00:00:20,080 --> 00:00:22,020
If you're an old-time gamer,

11
00:00:22,020 --> 00:00:24,030
you might recognize these keys.

12
00:00:24,030 --> 00:00:25,050
They were used in games

13
00:00:25,050 --> 00:00:27,060
to move around, as well.

14
00:00:27,060 --> 00:00:29,090
H goes to the left,

15
00:00:29,090 --> 00:00:31,090
J goes down,

16
00:00:31,090 --> 00:00:35,010
K goes up, and L goes right.

17
00:00:35,010 --> 00:00:37,010
It takes some time to get used to it

18
00:00:37,010 --> 00:00:38,040
but once you get it,

19
00:00:38,040 --> 00:00:39,090
it comes naturally.

20
00:00:39,090 --> 00:00:41,040
If you'd like to practice,

21
00:00:41,040 --> 00:00:44,010
you can head over to vim-adventures

22
00:00:44,010 --> 00:00:46,020
and try the first level.

23
00:00:46,020 --> 00:00:48,080
H, J, K, L move one character

24
00:00:48,080 --> 00:00:50,090
in each direction.

25
00:00:50,090 --> 00:00:52,050
Like many other vim commands,

26
00:00:52,050 --> 00:00:54,070
you can prefix them with a number,

27
00:00:54,070 --> 00:00:57,000
telling how many times you'd like the command

28
00:00:57,000 --> 00:00:58,020
to be executed.

29
00:00:58,020 --> 00:01:00,030
Let's move to the beginning of the file

30
00:01:00,030 --> 00:01:02,090
and then type 10L.

31
00:01:02,090 --> 00:01:06,000
This will move us 10 characters to the right.

32
00:01:06,000 --> 00:01:08,050
If you type 6J,

33
00:01:08,050 --> 00:01:11,000
this will move you six lines down.

