Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim case-insensitive filename completion

I recently noticed how to configure bash to do case-insensitive filename completion (in /etc/inputrc, add: set completion-ignore-case on), now how do I get this in vim?

like image 804
Vincent Scheib Avatar asked Sep 10 '10 17:09

Vincent Scheib


2 Answers

Try

:set wildignorecase

I believe it is a pretty new feature, I have it working in the latest vim build(7.3.107)

see here.

like image 102
Sampajano Avatar answered Oct 11 '22 12:10

Sampajano


Looks like it's not supported yet. It appears in vim's todo list :help todo search for CASE_INSENSITIVE_FILENAME (with priority "next release"):

8 Some file systems are case-sensitive, some are not. Turn CASE_INSENSITIVE_FILENAME into an option, at least for completion.

Anyway, if you don't care to rebuild vim from source then you can try this patch: http://osdir.com/ml/vim_dev/2009-09/msg00006.html

(Haven't tried it, so I cannot guarantee that it will solve your problem. Sorry)

like image 45
AmirW Avatar answered Oct 11 '22 12:10

AmirW