vim line numbers

This commit is contained in:
Rodolphe Breard 2019-04-07 00:17:00 +02:00
parent efe1ca47ae
commit 1af70b8f1c

8
.vimrc
View file

@ -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