From: John Gaughan (jgaughan-ilug at domain irish-times.com)
Date: Tue 16 Jul 2002 - 11:46:14 IST
On Tue, 16 Jul 2002, Gavin McCullagh wrote:
> I've been searching around the manual, google and the vim site but can't
> find anything on this.
> When opening a file from within vim you get a type of tab completion of
> filenames which I've seen on some shells. Specifically that when you hit
> tab it completes with the entirety of the first file matching what you've
> already entered and by hitting tab again you can cycle through the other
> matches. I daresay there's a termf or this but I don't know it.
> Anyway, the default bash completion is different, ie to complete the
> filename as far as it can without picking a file and then display a list of
> the files matching. I prefer this, particularly in dirs with lots of files.
> Anyone know how to change this behaviour in vim? Am I right in assuming
> you must be able to?
You can change the default behaviour of completion in Vim with the
'wildmode' option. With the default settings though you can get a list
of possible matches with <CTRL-D>. There's more on Vim's commandline
completion in the cmdline-completion section of the help.
You can also use the completion to complete help items which makes
finding info in the manual easier.
-- John Gaughan, Systems Administrator Irish Times New Media - http://www.ireland.com/
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:54 GMT