mtth / cursorcross.vim

Sane cursorcolumn and cursorline handling
33 stars 1 forks source link

Skip BufEnter and FileType autocommands during startup #6

Closed blueyed closed 9 years ago

blueyed commented 9 years ago

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?

mtth commented 9 years ago

Looks good, thanks!

blueyed commented 9 years ago

Thanks for merging!

FWIW, removing BufEnter and FileType will break :e foo.. but maybe FileType is unnecessary?!