On 3/12/07, Raphael Bauduin <[EMAIL PROTECTED]> wrote:
<snip>
> vim comandline completion if programmable:
> :helpgrep -complete=file
> :helpgrep -complete=custom
This is what I need. However, I hoped to be able to define it for
standard vim commands such as split, edit, etc
Isn't there a way to specify a custom completion if the filename
starts with radiant/ , like I defined the autocommands for filename
starting with radiant/ ?
Examples of what I want to achieve:
:split radiant/p<TAB> -> :split radiant/pages/
:split radiant/l<TAB> -> :split radiant/layouts/
:split radiant/<TAB> -> cycles through pages,layouts,snippets
:split radiant/pages/<TAB> -> :split radiant/pages/Home\ Page
This should also work with edit, vsplit, etc
As far as I know, the builtin filename-completion
for builtin commands is not customisable. However.
You can use the command-refirection trick to remap
some builtin commands to your own commands (which will
have your own completion):
http://www.vim.org/tips/tip.php?tip_id=1285
Tip #1285: remap builtin commands like :e
Yakov