Dani Church wrote:
> Is there any easy way to select the text from the most recent
> p or P in whatever Visual mode is appropriate (visual for
> character-based inserts, visual line for line-based inserts)?
> The closest answer I've come up with is `[v`] or `[V`] --
> should I just map that to a key? And is there any way to make
> it intelligently choose between the two?

I have just rewritten this tip:
http://vim.wikia.com/wiki/Selecting_your_pasted_text

The tip had the mapping you suggest above (`[v`]), and I have
added an expression mapping using visualmode() to do choose the
last selection mode.

This is a simple tip but is quite nice, and since I'm behind in
my fixing-the-wiki duties, I have just made it the Featured Tip
for August, so you will find it mentioned at:
http://vim.wikia.com/wiki/Vim_Tips_Wiki

John

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