Friday, September 21, 2012

Re: a small plugin for :call system() in vim

On 2012-09-21, Marcin Szamotulski wrote:
> On 13:54 Fri 21 Sep , Gary Johnson wrote:
> > On 2012-09-21, Marcin Szamotulski wrote:
> > > On 19:33 Fri 21 Sep , Marc Weber wrote:
> > > > Excerpts from Marcin Szamotulski's message of Fri Sep 21 19:21:23 +0200 2012:
> > > > > Hello,
> > > > >
> > > > > I just have found a neat way for doing:
> > > > > :echo system('command')
> > > >
> > > > why is echo system('command') better than :! ?
> > > >
> > > > Using :! you can stop it using ctrl-c again.
> > > > The only advantage I could see is that % is not treated specially.
> > > > Ah, its about completion ?
> > > Yes it is! and how less you need to type, and how nice it looks ;)
> >
> > This must be for shells that don't have command completion? From
> > both vim and gvim on my Linux system, command completion from :!
> > works fine.
> >
> > Regards,
> > Gary
>
> The problem is that there is no completion on the vim command line when
> you type:
> :echo system("....

I don't understand why anyone would want to use ":echo system('..."
instead of ":!...".

Regards,
Gary

--
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

No comments:

Post a Comment