When opening another file in my project using :e path/to/filTAB, vim will auto-complete the filename with all matching files, in alphabetical order. However, my project is full of .coffee, .litcoffee, .js and .map files.

How do I tell vim not to auto-complete the .js and .map files?

1 Answer 1


Wildmenu is the component, if you want to call it that, responsible for the files you open with :e. You can set ignore rules for it easily in your .vimrc using

set wildignore+=*.filetype

So say you want to ignore your filetypes, it would be:

set wildignore+=*.js,*.map

There's a great overview here. I would recommend you to write a specific config file for only this project, and load it when you're working on said project. In this way, vim will only ignore these files when you want it to, and not always.

  • I actually had to +=*.js,*.map to wildignore, but thangs!
    – Attila O.
    Jun 6, 2013 at 11:55
  • Absolutely right, typo in my example. Corrected.
    – SBI
    Jun 6, 2013 at 13:06

Your Answer

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

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