Another Vim plugin inspired to extend focusing event. Provide a simple way to dim a inactive window.
Use your favorite plugin manager, and add to your .vimrc
:
call dein#add('sinetoami/dimfocus.vim')
Run :so %
and :call dein#install()
.
Plug 'sinetoami/dimfocus.vim'
Run :so %
and :PlugInstall
.
It's possible define a custom color of foreground
and background
to a
inactive window. And disable the dimming action by filtering filetype
and/or buffername
.
Set a foreground
color. Default is ['gray', 'gray']
.
"" [guifg, ctermfg]
let g:dimfocus#fg = ['#ffffff', 255]
Set a background
color. Default is ['darkred', 'darkred']
.
"" [guibg, ctermbg]
let g:dimfocus#bg = ['#2d2a2e', '234']
Defines a filtering to disable dimming action by filetype
and/or buffername
.
Default is:
let s:blacklist = {
\ 'buffername': ['__LanguageClient__'],
\ 'filetype': ['diff', 'fugitiveblame', 'undotree', 'qf', 'quickfix'],
\}
It's incremental, so you can define new values:
let g:dimfocus#blacklist = {
\ 'buffername': ['#FZF'],
\ 'filetype': ['nerdtree', 'tagbar'],
\}
Set this variable if you want to disable this plugin. Default is 1
.
- To ask about the contents of the configuration, send me a feedback, request features or report bugs, please open a GitHub issue.
- Open a pull-request if you want to improve this plugin. I will glad to see your idea.
Do you like this plugin? Come on:
- Greg - who write this great feature which I hack it to make this plugin.