1
00:00:00,090 --> 00:00:03,020
- [Instructor] A lot of times, I'm at a position in the text

2
00:00:03,020 --> 00:00:04,080
where there is a word,

3
00:00:04,080 --> 00:00:08,050
and I'd like to see where I used the same word next.

4
00:00:08,050 --> 00:00:09,090
This is common when programming

5
00:00:09,090 --> 00:00:14,010
and trying to find out when a variable is used.

6
00:00:14,010 --> 00:00:18,030
Open sherlock.txt, vim sherlock.txt.

7
00:00:18,030 --> 00:00:22,010
And now type 3j6w.

8
00:00:22,010 --> 00:00:23,040
What did you just do?

9
00:00:23,040 --> 00:00:27,000
You moved three lines down, and six words to the right.

10
00:00:27,000 --> 00:00:29,060
Now we'd like to see where the name Irene

11
00:00:29,060 --> 00:00:30,070
is used next.

12
00:00:30,070 --> 00:00:33,070
Instead of using search with forward slash,

13
00:00:33,070 --> 00:00:35,080
we can use the asterisk.

14
00:00:35,080 --> 00:00:40,030
So, asterisk, the asterisk command searches forward

15
00:00:40,030 --> 00:00:42,010
for the word under the cursor.

16
00:00:42,010 --> 00:00:44,030
Now we can use End or asterisk again

17
00:00:44,030 --> 00:00:45,090
to repeat the search.

18
00:00:45,090 --> 00:00:47,080
End, end.

19
00:00:47,080 --> 00:00:48,090
This is super handy.

20
00:00:48,090 --> 00:00:52,020
I'm using it a lot, it's a big time saver.

21
00:00:52,020 --> 00:00:55,010
If you like to search backwards for the current word,

22
00:00:55,010 --> 00:00:56,050
use the hash mark.

23
00:00:56,050 --> 00:00:59,000
Hash mark, hash mark.

