nvie / vim-togglemouse

Toggles the mouse focus between Vim and your terminal emulator, allowing terminal emulator mouse commands, like copy/paste.
http://www.vim.org/scripts/script.php?script_id=3166
51 stars 22 forks source link

Toggle for number and relativenumber #5

Closed EmreAtes closed 6 years ago

EmreAtes commented 7 years ago

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.

sionleroux commented 7 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.

EmreAtes commented 7 years ago

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.

sionleroux commented 7 years ago

You might want to try Tim Pope's excellent unimpaired plugin. It adds toggle mappings for lots of things, including line numbers.