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 have updated the tip (credit in history):
http://vim.wikia.com/wiki/Selecting_your_pasted_text

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