From 1af70b8f1c42a640d950c2d9f3d811726d10d5a0 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sun, 7 Apr 2019 00:17:00 +0200 Subject: [PATCH] vim line numbers --- .vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vimrc b/.vimrc index 1f3debf..b93c193 100644 --- a/.vimrc +++ b/.vimrc @@ -58,3 +58,11 @@ let &t_ut='' let g:licenses_copyright_holders_name = $USER_NICKNAME let g:licenses_authors_name = $USER_NICKNAME let g:licenses_default_commands = ['affero', 'apache', 'bsd3', 'cecill', 'gfdl', 'gpl', 'gplv2', 'isc', 'lgpl', 'mit', 'mpl', 'verbatim'] + +" Line number modes +:set number relativenumber +:augroup numbertoggle +: autocmd! +: autocmd BufEnter,FocusGained,InsertLeave * set relativenumber +: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber +:augroup END