Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change line numbering on/off/toggle #233

Open
bulletmark opened this issue Aug 5, 2023 · 0 comments
Open

Change line numbering on/off/toggle #233

bulletmark opened this issue Aug 5, 2023 · 0 comments

Comments

@bulletmark
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant