rkitover / vimpager

Use Vim as PAGER
http://www.vim.org/scripts/script.php?script_id=1723
Other
774 stars 72 forks source link

Fix highlighting when +F is passed #253

Open bmundt6 opened 4 years ago

bmundt6 commented 4 years ago

In Vim 7.4, running vimpager with the +F option causes my syntax highlighting to be lost after the first refresh. I tried moving normal F to an autocmd but I'm not sure what event is needed; even attaching it to VimEnter causes my highlighting to disappear. The only solution I know of thus far is to run normal F as a -c command.

rkitover commented 4 years ago

I need to think about this.

This will not work with multiple buffers, but then we might not want to support multiple buffers with +F, or make it a per-buffer option.

I will do some testing and test with 7.4 as well.