Hacker News new | ask | show | jobs
by threatofrain 1456 days ago
You can also set both relative & absolute line numbers at the same time.
1 comments

I have this in my .vimrc to toggle relative on/off with ctrl-n:

> nnoremap <C-n> :exe 'set nu!' &nu ? 'rnu!' : ''