morhetz / gruvbox

Retro groove color scheme for Vim
13.65k stars 1.11k forks source link

Use augroup for autocmds #220

Closed thinca closed 6 years ago

thinca commented 6 years ago

:autocmd appends a entry every time, so autocmd entries accumulate when we reload the colorscheme(:colorscheme gruvbox).

2018-01-21_01h46_03

This PR adds augroup to avoid this.

thinca commented 6 years ago

BTW, I couldn't understand why autocmd is necessary here. I am interested in that. Can you tell me the reason?

morhetz commented 6 years ago

@thinca not exactly sure, I guess you're right and it should be just hi link whatever

thinca commented 6 years ago

I guess you're right and it should be just hi link whatever

OK, I sent a new PR to remove autocmds.