Re:Vim Tips For Intermediate Users
by isbadawi on Tuesday May 19, 2015 @11:05PM
(#9574441)
You can use a hybrid of absolute and relative numbering by setting both the 'number' and 'relativenumber' options (in vim 7.4). It displays the absolute number of the current line (instead of 0) but relative numbers of the other lines.
[ Parent
| on HN ]
Care to give any links to this? This is probably my biggest annoyance with Vim right now, how my current line is 0 and having to add 1 every time I do any operation gets old quick.
I think what he means is just put both
set relativenumber
set number
In your .vimrc
Have a look at http://myusuf3.github.io/numbers.vim/