On Aug 28, 6:21 am, Oliver Stieber <[email protected]> wrote:
> Hi,
> I've just sudo mounted my hard drive to get my music off of it, and then vi
> /etc/fstab so that it come up at boot time.
> and I had the urge to hit tab to complete the entries in the fstba file as I
> do with bash or many other things.
>
> so then I thought, well if bash already has this feature, how hard would it
> be to write an extension to vi, so that vi can look at some templates that
> define completion equivalences for various configuration files or whatever.
>

If I understand what you're saying, in this specific case you were
looking for filename completion, but also completion in general.

In Vim, in insert mode, CTRL-X followed by CTRL-F will go into
filename completion.

On the command-line, TAB will do this for you.

If you want other kinds of completion in insert mode, there are
several. See ins-completion (the entire long section) for details.

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui