Created
July 1, 2018 16:29
-
-
Save ctaylo21/36e40ef7fb5ef3d6bb12e7d48764e8a4 to your computer and use it in GitHub Desktop.
Example of customizing preview window highlighting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Call method on window enter | |
augroup WindowManagement | |
autocmd! | |
autocmd WinEnter * call Handle_Win_Enter() | |
augroup END | |
" Change highlight group of preview window when open | |
function! Handle_Win_Enter() | |
if &previewwindow | |
setlocal winhighlight=Normal:MarkdownError | |
endif | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment