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

Related Questions

I'm having issues when I take screenshots. This is my test code. import java.awt.Robot;
I am having a bit of a trouble understanding this line of code from
having a look at the following code: CCSprite* testsprite = [CCSprite spriteWithFile:@test.png]; CCLOG(@1. count:
I am having a link <a id=test href=text.php>test</a> I have the following jquery code
I'm often having code written as follows try: self.title = item.title().content.string except AttributeError, e:
Having this code: using (BinaryWriter writer = new BinaryWriter(File.Open(ProjectPath, FileMode.Create))) { //save something here
Right now, if you have a test that looks like this: [TestMethod] [DeploymentItem(DataSource.csv)] [DataSource(
How would you test this scenario? I've just started looking into NHibernate and having
I'm having trouble using Rhino Mocks to assert that a method was called (and
In the following Jackson/Java code that serializes objects into JSON, I am getting this:

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.