vim-unimpaired icon indicating copy to clipboard operation
vim-unimpaired copied to clipboard

Change line numbering on/off/toggle

Open bulletmark opened this issue 2 years ago • 1 comments

Like many vim programmers I have number and relativenumber on by default so I can see my current absolute line number and then the relative number of lines I can yank/delete/move etc. Sometimes I want to turn line numbering completely off, e.g. copy blocks via the mouse to another app's window, but unfortunately vim-unimpaired does not offer a toggle for this. Doing a yon when you have relativenumber on is pretty useless as the absolute number merely toggles to a 0 so I can't see why anybody would use/want that? So I suggest to change yon (and [on, ]on of course) to toggle both options so that line numbers are / are not displayed. Of course, you would have to keep an internal state to remember the user's starting preference for relativenumber. If this is undesirable or too logically messy then perhaps just add a separate new key, e.g. [oN, ]oN, and yoN to toggle/set both options together.

bulletmark avatar Aug 05 '23 00:08 bulletmark