Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6107911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:14:24+00:00 2026-05-23T14:14:24+00:00

Here is the text I’m working on: line1: website = a.com; … line3: website

  • 0

Here is the text I’m working on:

line1: website = “a.com”;
…
line3: website = “b.com”;
…
line5: website = “c.com”;

Suppose I want to change all website to “stackoverflow.com”, I can do:
– change “a.com” to “stackoverflow.com”
– yank the whole line (Y)
– go to line3, hit p, k, dd to paste from buffer and delete the old “b.com” line.

Now the problem is that since dd puts the “b.com” into the buffer, to replace line5 I’ll have to yank the whole line again.
Is there any simple way so that I can replace line3 and line5 with the already yanked line quickly?

UPDATE:
Thanks for the answers, now there are several ways doing it: delete to black hole, yank from named buffer, etc. I found this being my favorite method ( I use key R instead r as sometime I need to replace a single character):

In Vim is there a way to delete without putting text in the register?

I put some links to similar SO questions below:

How to Delete (desired text), delete (undesired text), and paste (desired text) in Vim
In Vim is there a way to delete without putting text in the register?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:14:24+00:00Added an answer on May 23, 2026 at 2:14 pm

    Rereading this question I think this is closer to what you’re after:

    In Vim is there a way to delete without putting text in the register?

    E.g. instead of using dd use "_dd

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can check out here alt text http://51hired.com/static/problem.bmp
text = urllib.urlopen('www.text.com').read() frase = re.search(your text here(.*), text).group() With these code, I get
How can i change a normal font to bold font, Here the text should
a simple question here Is there a way to change the text click here
I want to do this: #define kDescriptionText @Some text here... ...and more continued here.
I want to read user input, something like here : char *text = new
I want to show() <div id=test>write text here</div on click and not on page
Facebook returns the following result: http://www.mydomain.com/some-text-here-auth-login.html?session={%22session_key%22%3A%2295da8e65851d8ec74c381171-650901429%22%2C%22uid%22%3A%22650901429%22%2C%22expires%22%3A0%2C%22secret%22%3A%223chidden%22%2C%22base_domain%22%3A%22mydomain.com%22%2C%22access_token%22%3A%22171372936213670|95da8e65851d8ec74c381171-650901429|x_1y78ix4VU8Wr9qytDqV-DWBk0%22%2C%22sig%22%3A%22708bf3fd1703e4c368afe22fc70ed08c%22} On my .htaccess are the following lines: RewriteCond
Below my sample html file: some text here <img src=http://site.com/7b399e20/77165/5fa/2a31ffb8.jpg/> sometext here some text
using nokogiri, i want to find <p class=main> Some text here...</p> from an html

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.