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.
+1 vote
in vifm by
:highlight {*.jpg} cterm=underline
:highlight {*.jpg} cterm=standout
:highlight {*.jpg} cterm=none
{*.jpg}    cterm=underline ctermfg=default ctermbg=default
{*.jpg}    cterm=standout ctermfg=default ctermbg=default
{*.jpg}    cterm=none ctermfg=default ctermbg=default

Updated the answer, implementation is in the master branch now.

1 Answer

0 votes
edited by
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

UPDATE (2017-09-03):

Development version (after v0.9) now contains:

  • updating highlighting rule when pattern matches previously used one
  • :highlight clear {group-name} to delete filename-specific highlighting
If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.