Drill 03: Line & Character Motions
Master 0 ^ $ g_ and f t F T ; , for precision editing.
Prerequisites
Complete Session 03: Line & Character Motions first.
Practice Text
server_hostname = "vault-01.inside.domusdigitalis.dev" config: value1, value2, value3, value4 https://github.com/user/repo/blob/main/file.txt
Drill Exercises
Exercise 1: Line Positions
On the first line:
1. 0 - go to column 0
2. ^ - go to first non-blank
3. $ - go to end
4. g_ - go to last non-blank
Exercise 2: Character Search
On the config line:
1. f, - find first comma
2. ; - repeat to next comma
3. , - go back to previous
4. F: - find colon backward
Exercise 3: Delete with f/t
-
dt=- delete until equals -
df,- delete through comma -
ct"- change until quote
Exercise 4: URL Navigation
On the URL line:
1. f/;; - navigate to third slash
2. t. - go until period
Self-Assessment
| Skill | Comfortable? |
|---|---|
|
[ ] Yes [ ] Need practice |
|
[ ] Yes [ ] Need practice |
|
[ ] Yes [ ] Need practice |