Welcome to Vifm Q&A, where you can ask questions about using Vifm. Registration is optional, anonymous posts are moderated. E-mail and GitHub logins are enabled.
0 votes
in vifm by

Several files with the same extension (like .pdf or .jpg) don't get a correct highlight color whereas others do.

A few lines of my .config/vifm/colors/Default-256.vifm:

highlight {*.doc,*.docx} cterm=none ctermfg=122 ctermbg=default highlight {*.pdf} cterm=none ctermfg=160 ctermbg=default

.jpg highlight is set by default under " images
.pdf highlight is removed from " documents ... section

This should highlight all files with .pdf or .docx in their respective colors.
But this isn't always the case:


(even after renaming or even copying to another directory)

What could this be? I've already checked for file size or length of file, but it doesn't make a difference.

I use arch btw and kitty.

Help much appreciated.

1 Answer

+1 vote
by
selected by
 
Best answer

Highlighting based on file type has higher priority than highlighting based on file name/mime. You probably copied those files from a FAT or other Windows drive and they have executable bit set. Try running :chmod -x with one of those files under the cursor.

by

That's indeed the case, I've copied those files from a windows machine. Changing the file type has worked.

Thank you very much.

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.
...