Permalink
Browse files

Toggle on WinEnter and WinLeave

  • Loading branch information...
jeffkreeftmeijer committed Oct 26, 2017
1 parent 055b3f3 commit cfaecb9e22b45373bb4940010ce63a89073f6d8b
Showing with 3 additions and 3 deletions.
  1. +3 −3 plugin/number_toggle.vim
View
@@ -1,9 +1,9 @@
" vim-numbertoggle - Automatic toggling between 'hybrid' and absolute line numbers
" Maintainer: <https://jeffkreeftmeijer.com>
-" Version: 2.1.0
+" Version: 2.1.1
augroup numbertoggle
autocmd!
- autocmd BufEnter,FocusGained,InsertLeave * if &nu | set rnu | endif
- autocmd BufLeave,FocusLost,InsertEnter * if &nu | set nornu | endif
+ autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu | set rnu | endif
+ autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif
augroup END

0 comments on commit cfaecb9

Please sign in to comment.