Re: Text -> commandline

2006-05-16 Thread Meino Christian Cramer
From: Thor Andreassen <[EMAIL PROTECTED]>
Subject: Re: Text -> commandline
Date: Tue, 16 May 2006 22:45:30 +0200

Hi,

 The yank-trick (first yank the stuff, then CTRL-R" in the commandline
 fits currently my needs best.

 Thanks a lot!

 mcc


> On Tue, May 16, 2006 at 07:12:01PM +0200, A.J.Mechelynck wrote:
> > Meino Christian Cramer wrote:
> > > for what keyword I have to look in the online-help to find a hint
> > > how to copy any text from a buffer as any part of a command currently
> > > being edited in the commandline ?
> > >
> > If by "buffer" you mean what the Vim docs call a "register", see ":help 
> > c_CTRL-R".
> > 
> > If you mean part of a file being edited, IMHO the easiest way is to yank 
> > it beforehand into a register, though in some cases you can use the 
> > expression register (Ctrl-R =) with e.g. expressions such as getline(".")
>  
> For shortcuts to inserting files and words on the commandline see the
> section described here:
> 
> :help c__
> 
> -- 
> with kind regards
> Thor Andreassen
> 


Re: Text -> commandline

2006-05-16 Thread Thor Andreassen
On Tue, May 16, 2006 at 07:12:01PM +0200, A.J.Mechelynck wrote:
> Meino Christian Cramer wrote:
> > for what keyword I have to look in the online-help to find a hint
> > how to copy any text from a buffer as any part of a command currently
> > being edited in the commandline ?
> >
> If by "buffer" you mean what the Vim docs call a "register", see ":help 
> c_CTRL-R".
> 
> If you mean part of a file being edited, IMHO the easiest way is to yank 
> it beforehand into a register, though in some cases you can use the 
> expression register (Ctrl-R =) with e.g. expressions such as getline(".")
 
For shortcuts to inserting files and words on the commandline see the
section described here:

:help c__

-- 
with kind regards
Thor Andreassen


Re: Text -> commandline

2006-05-16 Thread Charles E Campbell Jr

A.J.Mechelynck wrote:


Meino Christian Cramer wrote:


Hi,

 for what keyword I have to look in the online-help to find a hint
 how to copy any text from a buffer as any part of a command currently
 being edited in the commandline ?

 kind regards,
 mcc


  


If by "buffer" you mean what the Vim docs call a "register", see 
":help c_CTRL-R".


If you mean part of a file being edited, IMHO the easiest way is to 
yank it beforehand into a register, though in some cases you can use 
the expression register (Ctrl-R =) with e.g. expressions such as 
getline(".")


Also, if you merely want the bit of text currently under the cursor, see 
:help expand() (ie. expand("") and expand("") ).


Regards,
Chip Campbell



Re: Text -> commandline

2006-05-16 Thread A.J.Mechelynck

Meino Christian Cramer wrote:

Hi,

 for what keyword I have to look in the online-help to find a hint
 how to copy any text from a buffer as any part of a command currently
 being edited in the commandline ?

 kind regards,
 mcc


  
If by "buffer" you mean what the Vim docs call a "register", see ":help 
c_CTRL-R".


If you mean part of a file being edited, IMHO the easiest way is to yank 
it beforehand into a register, though in some cases you can use the 
expression register (Ctrl-R =) with e.g. expressions such as getline(".")



Best regards,
Tony


Re: Text -> commandline

2006-05-16 Thread Pete Johns
On Tue, 2006-05-16 at 18:45:52 +0200, Meino Christian Cramer sent:
>Hi,
>
> for what keyword I have to look in the online-help to find a hint
> how to copy any text from a buffer as any part of a command currently
> being edited in the commandline ?
>
:help c_CTRL-R

Hope this helps;


--paj
-- 
Pete Johns   
Tel/Fax numbers and IM information   
Guy Kewney 


pgp0v7M7PVfJS.pgp
Description: PGP signature