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 7594487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:25:43+00:00 2026-05-30T21:25:43+00:00

In vim, I like using relative linenumbers to see how many lines I need

  • 0

In vim, I like using relative linenumbers to see how many lines I need to yank, delete, whatever.

However, when using relative linenumbers, the current line is 0, which means, if I want to yank until the line with number 3, I have to type 4yy, which is sort of counterintuitive and is slowing me down.

Is there a way to display relative linenumbers starting with 1 instead of 0?

  • 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-30T21:25:44+00:00Added an answer on May 30, 2026 at 9:25 pm

    I’d say, work with the system. Instead of using a ‘repeat’ you could modify to use the motion as intended:

    y3j instead of 4yy

    You’ll notice that the yank command takes a motion. yy is only there as a shorcut should you not want a motion (by definition it takes the current line).

    In a sense, doing 4yy is a little bit akward (‘4times’ take this whole line; You are relying on the fact that the implict motion is effectively multiplied by the repeat, it isn’t natural since the motion was implicit).

    On the plus side, you could even combine it: 4d3j (delete 3linesdown 4 times in a row, not a very useful example)

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

Sidebar

Related Questions

I often delete, yank, and paste using something like this: :3,6y Since Vim 7,
I am using VIM 7.1.314 and would like to yank the names (chris, robert,
I am using the Firefox plugin Vimperator that simulates vim like behaviour. However, i
I'd like to try Vim. I'm using Mac OS 10.6.2 (Snow Leopard). I downloaded
I am using slash for searching for stuff within vim. I'd like to use
I would like to automatically align lines of python variable assignments in vim. For
I like to use the split window feature in Vim. However I cannot seem
when I open a file using vim, I'd like vim put the cursor to
I'm using VS 2010 + latest VsVim. Looks like Vim Ctrl + R does
I like using pythoncomplete#Complete for Vim omnicompletion , but it doesn't work for Python

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.