Wednesday, March 9, 2016

tab completion of file names with partial string matching

Say I have a directory with two files junk1.txt, junk2.txt. In zsh, if I do

vim 1<tab>

it expands to

vim junk1.txt

Is it possible to have this kind of completion when opening files in
gvim as well? For example, commands such as
:e 1<tab>
:find 1<tab>
:tabf 1<tab>

should expand to
:e junk1.txt
:find junk1.txt
:tabf junk1.txt

respectively. If it matters, I am using vim 7.4.576 on a machine
running Debian Jessie. Any ideas?

thanks
raju
--
Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: