Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

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.

share|improve this answer
    
I actually had to +=*.js,*.map to wildignore, but thangs! –  Attila O. Jun 6 '13 at 11:55
    
Absolutely right, typo in my example. Corrected. –  SBI Jun 6 '13 at 13:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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