On Sat, 19 Aug 2006 at 8:37am, Fan Decheng wrote: > Only recently did I read the vim manual for command line completion. In > the documentation, I found that the following is a handy way to open a > file when using the :e command. > > 1. Type :e followed with a space. > 2. Type the first a few characters of the file you want to edit. > 3. Press CTRL-L. Vim will do completion like most UNIX shells do. > 4. Type more characters if the file name is not expected. > 5. Repeat step 3 to 4 until the file name is complete. > Note: After pressing CTRL-L, if you still cannot remember the rest part > of the file name, press CTRL-D to list all possible names. This works > like the Bourne Again Shell. > > Happy Vimming! >
For a much better completion option (using Vim7 popup completion), try the LUWalk command in my lookupfile plugin: http://www.vim.org/scripts/script.php?script_id=1581 As you type each component of the path, you will be shown matches in a popup window. You can also use wildcards such as ** to search subdirectories. -- Thanks, Hari __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com