Friday, November 30, 2007

Search Motions

You can use a search as a motion in conjunction with an operator. Say you have the following sentence:

A quick brown fox jumps over the lazy dog.

Vim (and Vi for that matter...) allow you to do things such as:

y/over (yanks "a quick brown fox jumps" into the default register)

c/over (puts you into insert mode with the sentence "over the lazy dog")

d/lazy (leaves you with the sentence "lazy dog")

etc...

No comments: