开发者

Vim case-insensitive filename completion

开发者 https://www.devze.com 2023-01-15 10:13 出处:网络
I recently noticed how to configure bash to do case-insen开发者_开发知识库sitive filename completion (in /etc/inputrc, add: set completion-ignore-case on), now how do I get this in vim?Try

I recently noticed how to configure bash to do case-insen开发者_开发知识库sitive filename completion (in /etc/inputrc, add: set completion-ignore-case on), now how do I get this in vim?


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.


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)

0

精彩评论

暂无评论...
验证码 换一张
取 消