From 553530387aaf6a442a33eba3f7b43b8911fc4bb8 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 7 Mar 2021 22:40:28 +0100 Subject: Add new arch configs, messed up color theme --- .config/nvim/general/settings.vim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.config/nvim/general') 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 -- cgit v1.2.3-70-g09d2