There may be a bug when using g:extra_whitespace_ignored_filetypes and vim split window.
I find this bug when using Conque-GDB: another vim script for cpp debugging.
In short:
It is better to match NOTHING(here I use ^^, which pattern will never occur) to ExtraWhitespace if ShouldMatchWhitespace() function returns 0. Otherwise ExtraWhitespace will not change in another split-vim-window.
Only audocmd BufRead is not enough for my case. Here I add BufNew.
Otherwise, even if I added let g:extra_whitespace_ignored_filetypes = ['conque_term'], the vim looked like (see the red whitespace highlights in the below window):
Hi, bronson,
There may be a bug when using g:extra_whitespace_ignored_filetypes and vim split window. I find this bug when using Conque-GDB: another vim script for cpp debugging.
In short:
^^
, which pattern will never occur) toExtraWhitespace
ifShouldMatchWhitespace()
function returns0
. Otherwise ExtraWhitespace will not change in another split-vim-window.audocmd BufRead
is not enough for my case. Here I addBufNew
.Otherwise, even if I added
let g:extra_whitespace_ignored_filetypes = ['conque_term']
, the vim looked like (see the red whitespace highlights in the below window):