exec 'e' a:dir . "/\t"
or
execute 'e ' . a.dir . "/\<Tab>"
:) Now we are getting somewhere. With your example above,
I get the directory itself in a vim buffer window. Which
is useful, but preferable, I want to see the wildmenu for
the directory.
As if I were to manually in ex type:
e /home/http/run/baker/xmlimport/models<Tab>
Try the feedkeys() function:
:call feedkeys('e ' . a.dir . "/\<Tab>")
If you check out the help for feedkeys() you will see documentation
about a second argument which you might like to include and experiment
with to get the results you want reliably.
I haven't tested it, so I may be completely wrong, but I think it might be what
you want!
Ben.
--
You received this message from the "vim_use" 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