more vi learning
Jan. 2nd, 2006 12:27 pmFound out yesterday that I can delete forward to the next instance of a pattern in vi by using
Also found out how to set a mark and delete to it, including the line it is on.
I'm still having problems using regexes in the / searches. Maybe it's time to learn some emacs, if I can't do this in vi.
Time to experiment and see if I can use the operand / with other operators, like say
This is cool.
Edit: [2006mar06]
' includes the line where the bookmark exists
` goes to the bookmark directly
d/pattern. This method does not delete the next pattern instance.Also found out how to set a mark and delete to it, including the line it is on.
many_letter sets marker specified_letter. d'specified_letter does the actual deletion. This uses a single quote. Using a back-tick does someting else. Must figure that out.I'm still having problems using regexes in the / searches. Maybe it's time to learn some emacs, if I can't do this in vi.
Time to experiment and see if I can use the operand / with other operators, like say
y, to copy all text until next pattern instance.This is cool.
Edit: [2006mar06]
' includes the line where the bookmark exists
` goes to the bookmark directly