From 0b7c78f93025f0ae3e02846c2d235f0fa92c95dd Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 31 May 2021 19:45:32 +0200 Subject: [PATCH] relative line numbers --- .vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.vimrc b/.vimrc index ff9105b..723d3f2 100644 --- a/.vimrc +++ b/.vimrc @@ -161,4 +161,11 @@ set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' +"https://jeffkreeftmeijer.com/vim-number/ +set number relativenumber +augroup numbertoggle + autocmd! + autocmd BufEnter,FocusGained,InsertLeave * set relativenumber + autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber +augroup END