5

Is there a way I can customize how vim does filename completion when I'm in ex-mode (on the : line)?

I never want to tab-complete to some filetypes (*.o, *.hi), and I'd rather they not pop up first.

tshepang
  • 12,111
  • 21
  • 91
  • 136
rampion
  • 87,131
  • 49
  • 199
  • 315
  • 1
    At least prioritizing the completions would be cool. It usually brings me so much frustration, when I type `:edit fooba` expecting to open `foobar.cpp` and end up opening binary ELF called `foobar`. `:/` – ulidtko Jan 14 '11 at 22:38
  • 1
    @ulidtko: see `suffixes` – rampion Jan 15 '11 at 06:49

1 Answers1

5

Put the following in $MYVIMRC

set wildignore=*.o,*.hi
Karl Bielefeldt
  • 47,314
  • 10
  • 60
  • 94