LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] vim filename completion

[ILUG] vim filename completion

John Gaughan jgaughan-ilug at irish-times.com
Tue Jul 16 11:46:14 IST 2002


On Tue, 16 Jul 2002, Gavin McCullagh wrote:
> Hi,
> 
> 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.

-- 
John Gaughan, Systems Administrator
Irish Times New Media - http://www.ireland.com/




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell