On Di, 25 Dez 2012, Luca Pette wrote: > On Saturday, 26 March 2011 00:10:52 UTC+1, Rickard Lindberg wrote: > > Hi, > > > > > > > > If I type CTRL-D on the command line it will show a list of possible > > > > matches (:e foo<CTRL-D>). > > > > > > > > Is it possible to capture this result list in a vim script? > > I was searching for this too. Any new suggestion? It would be awesome if it > would be possible to capture the output of command line completion with > vimscript/
Bram, here is a patch, that enables redirecting when using <ctrl-d> for commandline completion: diff --git a/src/ex_getln.c b/src/ex_getln.c --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1189,10 +1189,15 @@ goto cmdline_changed; case Ctrl_D: + redir_off = FALSE; if (showmatches(&xpc, FALSE) == EXPAND_NOTHING) + { + redir_off = TRUE; break; /* Use ^D as normal char instead */ + } redrawcmd(); + redir_off = TRUE; continue; /* don't do incremental search now */ case K_RIGHT: regards, Christian -- -- 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