On 27 Mar, Nick Croft wrote:
>  Can anyone help me with a vim technique for pasting a pattern into the 
>  command line. Specifically I'd like to yank a pattern and copy it in to 
>  a substitute command, e.g. 
>   
>                :s/pattern/substitute/ 
>   
>  I've searched the vim-tips db, and looked through the user manual in 
>  /usr/share/doc/vim/html. 

Maybe because it's always been possible in vi; i.e., it's not a vim
extension.  Just put the command text you want to execute into a named
buffer, then execute the named buffer.  In your case:

:s/pattern/substitute/

then for example (deleting the text into buffer s), say:

        "sdd
        @s
        
luke

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to