Y
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_complete_me
1456 days ago
I have this in my .vimrc to toggle relative on/off with ctrl-n:
> nnoremap <C-n> :exe 'set nu!' &nu ? 'rnu!' : ''
link
> nnoremap <C-n> :exe 'set nu!' &nu ? 'rnu!' : ''