Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn off Vim relativenumber setting?

Tags:

vim

Today I have discovered vim's relativenumber option. I really would like to use it, but sometimes I need to swap between relative numbering and classic one.

enter image description here

I have tried to turn it off with :set relativenumber=off option (which returns me error attached above) and using :set number again but none of those works.

like image 214
Patryk Perduta Avatar asked Aug 31 '15 08:08

Patryk Perduta


1 Answers

To turn on relative line numbering use this:

:set rnu

To turn it off use this:

:set nornu

By the way, if you had Googled around for your question, you would have found this great post which discusses things in more detail.

like image 128
Tim Biegeleisen Avatar answered Oct 05 '22 00:10

Tim Biegeleisen