3

In my .vimrc I have set relativenumber and set number it works in the editor but not in :Explore. I have to set it manually every time.

How can I always get set relativenumber and set number in :Explore?

3

You can set it in g:netrw_bufsettings. The default is "noma nomod nonu nobl nowrap ro nornu", so this should do:

let g:netrw_bufsettings = "noma nomod nu nobl nowrap ro rnu"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.