Thursday, December 17, 2015

Re: Is there a way to display line numbers and relative line numbers as with two rulers?

Not exactly what you are asking, but I have found visual mode delete and yank much faster. I agree that you have to lift your hand to use the mouse, but the visual indication is a very acceptable trade off for me. I have two visual mode mappings in that regard:

:vnoremap <c-d> :d<cr>
:vnoremap <c-y> :y<cr>

What I do is visually select the lines and do one of the above delete (ctrl-d) or yank (ctrl-y) operations depending on the context. The mapping started off as an experiment initially, but now it is an indispensable to me.

Regards,
-Arun

On Thu, Dec 17, 2015 at 5:04 AM, Christian Brabandt <cblists@256bit.org> wrote:
Am 2015-12-17 13:14, schrieb Igor Forca:
Yes, something like that but if possible to have one ruler on left and
one on right site.

in that case, you can create a vertical window, fill the buffer with the numbering
and scroll bind it to the current window.


--
--
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/d/optout.

--
--
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/d/optout.

No comments: