Why is my vim colorscheme changing when I change buffers

前端 未结 2 1584
别那么骄傲
别那么骄傲 2020-12-12 01:37

I have some prefered colorscheme on some filetypes, but when I open another file (different file type with different colorscheme) and come back on a previous one, the new co

2条回答
  •  自闭症患者
    2020-12-12 02:08

    Ingo's answer is smarter but these autocommands

    autocmd BufEnter *     colorscheme default
    autocmd BufEnter *.php colorscheme desert
    autocmd BufEnter *.py  colorscheme darkblue
    

    should work. Well, they work, here.

提交回复
热议问题