.vimrc fails when opening a new tab in MacVim

I have MacVim and Janus installed.

I recently added set rnuto my .vimrc.after to enable relative line numbering, and found out that only rnu works for me when I open a new window. I mean, when I open a new tab in an existing window, I get normal sequential numbering.

I would like to know how to enable rnu for all windows and tabs of MacVim.

+5
source share
1 answer

Get in the same problem. The reason is that absolute line numbers are set for some file types. I hope janus developers can do something about it: I just opened a problem for it in the github repository: https://github.com/carlhuda/janus/issues/472

Update

Add this to your ~/.vimrc.afterfile:

set no number

install relatitedumber

Relative line numbers must be maintained with these settings.

+4
source

All Articles