Highlight matched character foreground color?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I have setup Vim to highlight trailing whitespace:
set listchars=eol:âµ,nbsp:â¦,tab:âÂÂâÂÂ,trail:⮿,extends:â®Â,precedes:â®Â
set list " Show problematic characters.
" Also highlight all tabs and trailing whitespace characters.
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /s+$/
This works fine and sets a red highlighted background on trailing whitespace characters.
Is there a way to instead set the foreground color of the text rather than the background? I can't seem to get it to trigger using ctermfg and guifg.
vim colors nvim
add a comment |Â
up vote
2
down vote
favorite
I have setup Vim to highlight trailing whitespace:
set listchars=eol:âµ,nbsp:â¦,tab:âÂÂâÂÂ,trail:⮿,extends:â®Â,precedes:â®Â
set list " Show problematic characters.
" Also highlight all tabs and trailing whitespace characters.
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /s+$/
This works fine and sets a red highlighted background on trailing whitespace characters.
Is there a way to instead set the foreground color of the text rather than the background? I can't seem to get it to trigger using ctermfg and guifg.
vim colors nvim
You want to change the foreground color of whitespace?
â Ignacio Vazquez-Abrams
May 18 at 12:08
Yes, I want to change the font color.
â Naftuli Kay
May 18 at 19:23
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have setup Vim to highlight trailing whitespace:
set listchars=eol:âµ,nbsp:â¦,tab:âÂÂâÂÂ,trail:⮿,extends:â®Â,precedes:â®Â
set list " Show problematic characters.
" Also highlight all tabs and trailing whitespace characters.
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /s+$/
This works fine and sets a red highlighted background on trailing whitespace characters.
Is there a way to instead set the foreground color of the text rather than the background? I can't seem to get it to trigger using ctermfg and guifg.
vim colors nvim
I have setup Vim to highlight trailing whitespace:
set listchars=eol:âµ,nbsp:â¦,tab:âÂÂâÂÂ,trail:⮿,extends:â®Â,precedes:â®Â
set list " Show problematic characters.
" Also highlight all tabs and trailing whitespace characters.
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /s+$/
This works fine and sets a red highlighted background on trailing whitespace characters.
Is there a way to instead set the foreground color of the text rather than the background? I can't seem to get it to trigger using ctermfg and guifg.
vim colors nvim
edited May 18 at 12:08
gmarmstrong
347222
347222
asked May 3 at 18:34
Naftuli Kay
11.4k53153242
11.4k53153242
You want to change the foreground color of whitespace?
â Ignacio Vazquez-Abrams
May 18 at 12:08
Yes, I want to change the font color.
â Naftuli Kay
May 18 at 19:23
add a comment |Â
You want to change the foreground color of whitespace?
â Ignacio Vazquez-Abrams
May 18 at 12:08
Yes, I want to change the font color.
â Naftuli Kay
May 18 at 19:23
You want to change the foreground color of whitespace?
â Ignacio Vazquez-Abrams
May 18 at 12:08
You want to change the foreground color of whitespace?
â Ignacio Vazquez-Abrams
May 18 at 12:08
Yes, I want to change the font color.
â Naftuli Kay
May 18 at 19:23
Yes, I want to change the font color.
â Naftuli Kay
May 18 at 19:23
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f441627%2fhighlight-matched-character-foreground-color%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
You want to change the foreground color of whitespace?
â Ignacio Vazquez-Abrams
May 18 at 12:08
Yes, I want to change the font color.
â Naftuli Kay
May 18 at 19:23