Closed EmreAtes closed 6 years ago
Although this is surely useful, I personally feel this is a bit out of scope of the togglemouse plugin. I toggle number/relativenumber with something else.
I guess you're right. I initially tried mapping F12 to :set nu!<CR>
but it didn't work, so I added it to the plugin. I don't know much about vimscript to know why it didn't work, maybe a setting can be added to enable this number hiding functionality.
You might want to try Tim Pope's excellent unimpaired plugin. It adds toggle mappings for lots of things, including line numbers.
This edit should also toggle line numbers with.
I was using this to copy with mouse from vim, so not having numbers in terminal mouse mode is useful.