Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.

How to unset a highlight?

0 votes
asked Dec 20, 2016 in vifm by aleksejrs
:highlight {*.jpg} cterm=underline
:highlight {*.jpg} cterm=standout
:highlight {*.jpg} cterm=none
:highlight
{*.jpg}    cterm=underline ctermfg=default ctermbg=default
{*.jpg}    cterm=standout ctermfg=default ctermbg=default
{*.jpg}    cterm=none ctermfg=default ctermbg=default

1 Answer

0 votes
answered Dec 20, 2016 by xaizek
selected Feb 23 by aleksejrs
 
Best answer

There is no command for this. :highlight just appends one more definition and :highlight clear can be used to reset all definitions.

It's easier with groups like Border because of their fixed name. But maybe we could update definition when pattern matches previous command. Vim also has:

:hi[ghlight] clear {group-name}
:hi[ghlight] {group-name} NONE
If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here won't be considered as spam, but this is not a perfect place for it.
...