Hacker News new | ask | show | jobs
by chongli 4366 days ago
Or am I missing something?

Indeed you are. The / command in vim is a motion. This means it can be combined with any command that expects a motion as input. For one example of this, try typing "d/foo<CR>" (excluding quotes). This will delete all text from the cursor to the first occurrence of foo.

1 comments

I'll have to remember that. Cheers.