From 9f9d7aa6512826ee56e012fcaf958ccf3bf0ba1f Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Mon, 19 Apr 2021 19:40:54 +0200 Subject: [PATCH] Removed FocusGain/Loss from relative number in init.vim Signed-off-by: Louis Vallat --- .config/nvim/init.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index dd8e976..8e8a668 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -2,8 +2,8 @@ set number relativenumber augroup numbertoggle autocmd! - autocmd BufEnter,FocusGained,InsertLeave * set relativenumber - autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber + autocmd BufEnter,InsertLeave * set relativenumber + autocmd BufLeave,InsertEnter * set norelativenumber augroup END " https://stackoverflow.com/a/1878983