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

'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?
    – John Zhau
    Apr 27 at 13:42
  • 1
    Use :set suffixes+=.class,.foo Apr 27 at 13:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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