Closed blueyed closed 9 years ago
Without this, all windows will have a cursorline when starting Vim to open multiple windows (vim -o file1 file2).
vim -o file1 file2
Apart from that I wonder if the BufEnter and FileType events are really necessary to hook into. WinEnter and WinLeave should be enough?!
Maybe BufEnter was used to handle starting Vim with a single buffer/window?
Looks good, thanks!
Thanks for merging!
FWIW, removing BufEnter and FileType will break :e foo.. but maybe FileType is unnecessary?!
:e foo
Without this, all windows will have a cursorline when starting Vim to open multiple windows (
vim -o file1 file2
).Apart from that I wonder if the BufEnter and FileType events are really necessary to hook into. WinEnter and WinLeave should be enough?!
Maybe BufEnter was used to handle starting Vim with a single buffer/window?