Skip to content

Latest commit

 

History

History
85 lines (71 loc) · 2.2 KB

README.md

File metadata and controls

85 lines (71 loc) · 2.2 KB

dimfocus.vim

Another Vim plugin inspired to extend focusing event. Provide a simple way to dim a inactive window.

Installation

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.

Configuration

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.

g:dimfocus#fg [list]

Set a foreground color. Default is ['gray', 'gray'].

Example

"" [guifg, ctermfg]
let g:dimfocus#fg = ['#ffffff', 255] 

g:dimfocus#bg [list]

Set a background color. Default is ['darkred', 'darkred'].

Example

"" [guibg, ctermbg]
let g:dimfocus#bg = ['#2d2a2e', '234'] 

g:dimfocus#blacklist [dictionary]

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:

Example

let g:dimfocus#blacklist = {
\ 'buffername': ['#FZF'],
\ 'filetype': ['nerdtree', 'tagbar'],
\}

g:loaded_dimfocus

Set this variable if you want to disable this plugin. Default is 1.

Contributing

  • 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.

Self-Promotion

Do you like this plugin? Come on:

  • Star and follow the repository on GitHub.
  • Follow me on

Many thanks to

License

MIT License