From a83360b1db903f0aaef759134b19f1f50ca312e8 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 5 Dec 2023 21:57:05 +1100 Subject: [PATCH] Enable both relative and absolute line numbers --- dot-config/vim/init.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dot-config/vim/init.vim b/dot-config/vim/init.vim index ac9d028..027893c 100644 --- a/dot-config/vim/init.vim +++ b/dot-config/vim/init.vim @@ -60,7 +60,11 @@ if has('linebreak') set linebreak showbreak=↩ endif -set relativenumber +# Setting both number and relativenumber gets you a "hybrid" setup where the +# current line's absolute number is displayed, but the other lines have +# relative numbmers displayed. It's more useful than always seeing a 0 for the +# current line. +set number relativenumber set showcmd set title