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

  • Home
  • SEARCH
  • 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 1010059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:01:24+00:00 2026-05-16T09:01:24+00:00

Having the code: [Test] public void ShouldDoSomethingMeaningFull() { Assert.Fail(); } I often need to

  • 0

Having the code:

[Test]
public void ShouldDoSomethingMeaningFull() {
    Assert.Fail();
}

I often need to overwrite the line (3) Assert.Fail();. What I currently do is this:

  1. Go to that line 3G.
  2. Select everything starting from first non-whitespace ^v$.
  3. Change it – c.

The whole sequence is: 3G^v$c.

While this works for me but it is not efficient way of doing it because my fingers jump to the ^ and $.

Any better way?

Thanks,
Dmitriy.

  • 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-16T09:01:25+00:00Added an answer on May 16, 2026 at 9:01 am

    The obvious improvement would be 3GC (C means change to end of line, i.e. the same as 3Gc$)

    If you prefer to change the entire line as pointed out by Pavel Shved, there’s a not so obvious shortcut for that as well. 3GS is the same as 3Gcc.

    The “Making small changes” section of the help file has more details.

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

Sidebar

Ask A Question

Stats

  • Questions 509k
  • Answers 509k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The mmap() function, called with MAP_ANON | MAP_PRIVATE, is very… May 16, 2026 at 4:44 pm
  • Editorial Team
    Editorial Team added an answer Just use @MyProcedure for that. Beware that it has to… May 16, 2026 at 4:44 pm
  • Editorial Team
    Editorial Team added an answer No, because when you specify font-family, the font stack doesn't… May 16, 2026 at 4:44 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm having trouble using Rhino Mocks to assert that a method was called (and
How would you test this scenario? I've just started looking into NHibernate and having
This is my code: public class RegularPolygon { public int VertexCount; public double SideLength;
I am having problems creating WCF client proxy for service code like in this
(This is a follow up question to this one.) I'm having a problem with
I'm trying to unit test a method that performs a fairly complex operation, but
I'm having some trouble unit testing a bit of code while utilising the Wcf
UPDATE - No need to answer this now, I have solved below. Hi, I'm
I'm very new to TDD and I'm having trouble with one of my unit
I've created a method that takes two dates (in milliseconds) and returns a sentence

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.