Perfect!  This is so easy to map to my own key
combination too.

Thanks to all who replied.



--- Bram Moolenaar <[EMAIL PROTECTED]> wrote:

> 
> Jimmy Mack wrote:
> 
> > I really like the "gv" command, which starts
> visual
> > mode and automatically selects the previous
> selection,
> > regardless of where the cursor happens to be.  
> > 
> > I would like to see a similar command that starts
> > visual mode and selects the block of text I have
> just
> > pasted in.
> > 
> > After extensive browsing through the help system
> and
> > online, I can't find a way to do this.
> > 
> > My vim scripting skills are weak, can anyone tell
> me
> > if this is possible to script a command for?  I'm
> not
> > sure if vim retains information about the
> boundaries
> > of the most recently pasted text.
> 
> You can use:  `[v`]
> 
> If the cursor is still at the start of the pasted
> text then v`] works.
> 
> -- 
> "Computers in the future may weigh no more than 1.5
> tons."
>                                    Popular
> Mechanics, 1949
> 
>  /// Bram Moolenaar -- [EMAIL PROTECTED] --
> http://www.Moolenaar.net   \\\
> ///        sponsor Vim, vote for features --
> http://www.Vim.org/sponsor/ \\\
> \\\        download, build and distribute --
> http://www.A-A-P.org        ///
>  \\\            help me help AIDS victims --
> http://ICCF-Holland.org    ///
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to