Drill 03: Line & Character Motions

Master 0 ^ $ g_ and f t F T ; , for precision editing.

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

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

  1. dt= - delete until equals

  2. df, - delete through comma

  3. 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?

0 ^ $ g_ positions

[ ] Yes [ ] Need practice

f and t search

[ ] Yes [ ] Need practice

; and , repeat

[ ] Yes [ ] Need practice