junegunn / vim-plug

:hibiscus: Minimalist Vim Plugin Manager
https://junegunn.github.io/vim-plug/
MIT License
34.09k stars 1.93k forks source link

PlugBegin function in vimrc file not highlighted after reinstalling Vim #1020

Open Chaoticsys101 opened 4 years ago

Chaoticsys101 commented 4 years ago

All works fine with Vim Plug but in the vimrc file the function PlugBegin and its contents are not highlighted like they used to be (it happens with any colorscheme). It was working fine until I uninstalled Vim and re-installed it again. First I thought it was because I had to 'refresh' vim plug, so I did PlugUpdate and PlugUpgrade and they worked normally, but the highlighting problem persisted. Again, everything else is working normally.

IMG_20201005_203727


Vim v8.2.1801
Features huge. 
janlazo commented 4 years ago

Which colorscheme? Need a smaller vimrc to reproduce the issue.

Syntax highlight works for me with the following colorschemes:

Chaoticsys101 commented 4 years ago

Like I said, it happens with any colorscheme. I used gruvbox in gvim and default colorscheme in terminal vim. Now I use those same colorschemes. And the problem persists when I change colorscheme, I have tried Dracula, Solarized, Ayu, Onehalf, etc. The syntax highlighting is working the same way everywhere except in that function.

KabbAmine commented 3 years ago

Same here, I'm using my own colorscheme Yowish but it does not matter because the highlighting groups used are not correct, at least on my config.

vim

Vim v8.2.1897
Xubuntu 18.04.5
Chaoticsys101 commented 3 years ago

let's hope it gets fixed soon

markwu commented 3 years ago

I have the same issue both in windows and macOS under VIM, no matter which colors scheme used.

markwu commented 3 years ago

It seems Plug does not exist in keyword. After add the following setting to vimrc, the issue fixed.

autocmd FileType vim syntax keyword Function Plug

janlazo commented 3 years ago

@markwu That code could be added after plug#end() or on VimEnter event. PRs welcome.