How to reproduce
vim --cleanon a file that contains another filename.
- Now run these commands
:set number relativenumber :autocmd BufLeave * set norelativenumber | echoerr "BufLeave triggered"
- Now use
<C-w><C-f>on the filename to open it up in a new window.
I expect this command to do
set norelativenumber on the original buffer when opening the other file on another window. Just like it is when you just move around in your windows containing different buffers with
The event is triggered, but
set norelativenumber isn't ran on the left buffer.
It looks to me as a bug, am I missing something ?
I'm running Vim version 8.2.1821 by the way.