0

When opening a file with :e, :vs or :sp, I generally don't want to open binary files or files with certain extensions like .class.

Is there a way to ignore files with certain extensions or MIME type (or put them at the end of the completion options) in the wildmenu auto-complete?

0

1 Answer 1

1

'wildignore' is a list of file patterns which be ignored for completing (among other things as well)

set wildignore+=*.class

'suffixes' is a list of file suffixes which will lower the priority of filename in completion

set suffixes+= class

For more help see:

:h 'wildignore'
:h 'suffixes'
2
  • how can I add multiple entries for them in 1 line? Commented Apr 27, 2021 at 13:42
  • 1
    Use :set suffixes+=.class,.foo Commented Apr 27, 2021 at 13:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.