diff --git a/plugin/number_toggle.vim b/plugin/number_toggle.vim index eb54b9f..40bec21 100644 --- a/plugin/number_toggle.vim +++ b/plugin/number_toggle.vim @@ -1,9 +1,9 @@ " vim-numbertoggle - Automatic toggling between 'hybrid' and absolute line numbers " Maintainer: -" Version: 2.1.1 +" Version: 2.1.2 augroup numbertoggle autocmd! - autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu | set rnu | endif + autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != "i" | set rnu | endif autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif augroup END