On Apr 10, 11:39 pm, Spiros Bousbouras <[email protected]> wrote:
> On Apr 9, 6:29 pm, Tim Chase <[email protected]> wrote:
>
> > On 04/09/2011 12:11 PM, Spiros Bousbouras wrote:
>
> > > How can you insert the output of an Ex command into the buffer
> > > at the place where the cursor is ? Say for example in the 1st
> > > line here I want to insert right after "you" the output of
> > > :chdir .So I place the cursor after "you" and then do what ?

[...]

> > 2) use the system() call in an expression-register to perform the
> > command in your OS's command-interpreter:
>
> >   In insert mode in *nix:
> >   ^R=system('pwd')
>
> I'm on Linux. This works for my specific example

For this example    ^R=getcwd()    also works.

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

Reply via email to