When viewing a directory (using
:Explore, for example), I would like to see line numbers. I can run
:set number after opening the directory, and that works, but I can't get
numbering to turn on by default (using e.g. configuration in my
I have tried adding variations of the following to my
.vimrc file, but none seem to work:
:autocmd FileType netrw set number :autocmd FileType * setlocal number :autocmd BufEnter * setlocal number
Here is a reference to a similar question regarding numbering for help files. The solution to that question does not work in this case.