Hi,
Dani Church wrote:
On Tue, Aug 3, 2010 at 21:32, John Beckett johnb.beck...@gmail.com wrote:
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.
Excellent idea, thanks! The only caveat is
Jürgen Krämer wrote:
nnoremap expr gp '`[' . strpart(getregtype(), 0, 1) . '`]'
might work better.
Thanks, that solves another problem I was ignoring: visualmode()
gives the result from the current buffer (whereas you may have
pasted some text which you had just copied in another buffer).
I
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?
On Tue, Aug 3, 2010 at 21:32, John Beckett johnb.beck...@gmail.com wrote:
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.
Excellent idea, thanks! The only caveat is that if you cut your text