Wednesday, May 29, 2013

Re: Why use relative line numbers?

On 2013-05-29 12:29, Chris Lott wrote:
> But if I am on line 7 and see something on another line, I can just
> use 12gg or 12G to get there. And if I have relative numbering on,
> it messes with specifying ranges (as far as I can tell). Does
> relative numbering offer other efficiencies?

In small files, the differences are somewhat minor. However if
you're down in the bottom of a large file,

d5k

is considerably shorter than

d14159G

you can pretty much be guaranteed that your relative jump will be
capped at 2 digits (possibly 3 if your cursor line is at the
top/bottom of the screen you have a wide-screen monitor in portrait
mode, giving you more than 100 lines of text).

It's also just a matter of how your mind thinks.

-tim


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: