I'm trying this snippet, but nothing happens. The nerdtree buffer still has no line numbering whatsoever.

autocmd BufEnter nerd* set rnu


This worked for me:

:let g:NERDTreeShowLineNumbers=1
:autocmd BufEnter NERD_* setlocal rnu
  • Hum, still nothing happens.
    – ninrod
    Mar 9 '16 at 0:37
  • @ninrod Turns out I didn't have the latest version of NERDTree. I installed it, found the issue, and revised my answer.
    – Heptite
    Mar 9 '16 at 0:47
  • Awesome. Worked like a charm.
    – ninrod
    Mar 9 '16 at 1:01

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.