如何保持fzf.vimp弹出窗口与终端相同的颜色?最新的更新使用g:fzf_colors将其更改为当前的Vim主题。我尝试将其设置为"",也尝试将颜色规格更改为忽略,但这不起作用。我在终端中有半透明的背景,这是过去在Vim的FZF窗口中显示的,尽管Vim的背景是灰色的(Zenburn)。
Vim 8.2。
发布于 2021-02-11 07:07:30
:h g:fzf_colors表示
" Customize fzf colors to match your color scheme
" - fzf#wrap translates this to a set of `--color` options
let g:fzf_colors =
\ { 'fg': ['fg', 'Normal'],
\ 'bg': ['bg', 'Normal'],
\ 'hl': ['fg', 'Comment'],
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
\ 'hl+': ['fg', 'Statement'],
\ 'info': ['fg', 'PreProc'],
\ 'border': ['fg', 'Ignore'],
\ 'prompt': ['fg', 'Conditional'],
\ 'pointer': ['fg', 'Exception'],
\ 'marker': ['fg', 'Keyword'],
\ 'spinner': ['fg', 'Label'],
\ 'header': ['fg', 'Comment'] } 我将其放入我的~/.vim/plugin/fzf-options中(但您也可以直接将其放入.vim/vimrc文件中)。
它使它与主题色相匹配。
https://stackoverflow.com/questions/64175618
复制相似问题