10 years ago
Show absolute line numbers when the window isn't in focus.
This is useful when, for instance, you are navigating through test results in your quickfix window, and would like to reference the line numbers to a split you have open. If you normally have relative or hybrid numbers on, it would be hard to match the quickfix line to a line in a visible file, but with this in your vimrc, it makes it easy.
" Show absolute line numbers when the window isn't in focus. au WinEnter * setl rnu | au WinLeave * setl nornu