在debian上使用vim-plug安裝配色主題”gruvbox”,需要加上 t_Co=256讓vim開啟256色支援後才能生效
同時修改官方建議內容,減少++nested
autocmd vimenter * nested colorscheme gruvbox
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
""""""""""""""""""""""""""""""" " vim-plug call plug#begin() Plug 'morhetz/gruvbox' call plug#end() """""""""""""""""""""""""""""" set t_Co=256 syntax on set background=dark let g:gruvbox_italic=1 colorscheme gruvbox " let g:gruvbox_contrast_dark = 'medium' " autocmd vimenter * nested colorscheme gruvbox |
在 gruvbox 主題下,.py 測試實際配色如下