Skip to content

Commit cfaecb9

Browse files
Toggle on WinEnter and WinLeave
Closes #39. 🎩 @brendanator and @fernandoacorreia
1 parent 055b3f3 commit cfaecb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugin/number_toggle.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" vim-numbertoggle - Automatic toggling between 'hybrid' and absolute line numbers
22
" Maintainer: <https://jeffkreeftmeijer.com>
3-
" Version: 2.1.0
3+
" Version: 2.1.1
44

55
augroup numbertoggle
66
autocmd!
7-
autocmd BufEnter,FocusGained,InsertLeave * if &nu | set rnu | endif
8-
autocmd BufLeave,FocusLost,InsertEnter * if &nu | set nornu | endif
7+
autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu | set rnu | endif
8+
autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif
99
augroup END

0 commit comments

Comments
 (0)