Is there any way to show line numbers by default, for all windows, buffers, and tabs opened inside Vim (including man pages,
netrw buffers, etc.)?
What I have already tried to edit
_vimrc by putting
set number. This changes the behavior of the all new file buffers. But while I am opening a man page or navigating a directory listing using
NERDTree, the line numbers are not showing up. And for each kind of those windows, buffers and tabs, I have to run
:se nu. Are there any way to enable Vim to show up line numbers for all its buffers?
Why do I need this?
I am very new to Vim and try to adopt its culture. Previously, I was using Epsilon — a EMACS-style text editor editor for a long time. But, some time ago, I found this question at Stack Overflow and was very astonished to see its answer and started to learn Vim.
Now, in my previous editor these are easy settings for me, what my eyes are very familiar with. And I believe there must some way to do this in Vim too.
Can anybody help me or at least give me some hint to get this setting done?