jeffkreeftmeijer / vim-numbertoggle

Toggles between hybrid and absolute line numbers automatically
https://jeffkreeftmeijer.com/vim-number/#automatic-toggling-between-line-number-modes
MIT License
682 stars 49 forks source link

keep norelativenumbers on insert mode when focus re-gained #50

Closed bubuntux closed 3 years ago

bubuntux commented 4 years ago

When you are on insert mode and regain focus you end up with relative numbers on insert move, this change will avoid that issue.

when you are on insert mode numbers will be always norelative

jeffkreeftmeijer commented 3 years ago

Hey @bubuntux, thanks a lot for this patch. It never occurred to me this was an issue, but it clearly showed when losing focus in insert mode during my testing. I’ve merged your pull request, and vim-numbertoggle is now 2.1.2!