bogado / file-line

Plugin for vim to enabling opening a file in a given line
http://www.vim.org/scripts/script.php?script_id=2184
299 stars 61 forks source link

Highlighting broken when using set hidden and opening multiple files #68

Open netei opened 8 years ago

netei commented 8 years ago

Probably closely related to https://github.com/bogado/file-line/issues/63

Here is a minimal .vimrc to reproduce :

set nocompatible
syntax enable
set hidden

call plug#begin()
Plug 'ydeweerdt/file-line'
call plug#end()

Then open two existing files, with vim foo.js bar.js run :bn to switch to the next buffer, the syntax highlighting is not applied.

I tried to apply https://github.com/bogado/file-line/pull/66 but it doesn't fix it.