Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having issues with sed/vim using the s/replace this/with this command.

Here are some screenshots to show the issue.

enter image description here

enter image description here

How do I match this string and replace it with what I want?

share|improve this question
up vote 4 down vote accepted

You forgot to give a range. Otherwise, it only processes the current line.

:%s/.../.../
share|improve this answer
    
I knew it was something simple, thanks! Will accept once the time limit is up. – Chris Wagner Aug 21 '12 at 18:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .