diff options
Diffstat (limited to '.config/nvim/general')
-rw-r--r-- | .config/nvim/general/settings.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/nvim/general/settings.vim b/.config/nvim/general/settings.vim index 47066ef..b348267 100644 --- a/.config/nvim/general/settings.vim +++ b/.config/nvim/general/settings.vim @@ -45,3 +45,12 @@ au CursorHold * checktime " You can't stop me cmap w!! w !sudo tee % + +" Relative line numbers +:set number relativenumber + +:augroup numbertoggle +: autocmd! +: autocmd BufEnter,FocusGained,InsertLeave * set relativenumber +: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber +:augroup END |