Hi,

brice wrote:
> 
> suppose I want to change (with vertical visual mode)
> 
> word
> word
> word
> 
> to
> 
> a word
> a word
> a word
> 
> Cursor on the first line, first column, I do <ctrl+V> (or Q for win),
> jjj<shift>I (for insertion), a (with a space) and finally <esc>.
> 
> But if I want to insert the clipboard content (which can is very
> useful!) instead of typing, then when I hit <esc> to end the sequence,
> the change is only applied on the first line not on all vertically
> selected lines.

Vim only pastes as a block if it knows that the content of the register
(and the clipboard is register "+") was yanked as block.

> Does anyone know how to make this sequence work with clipboard
> content?

You can open a new buffer, paste the content of the clipboard into this
buffer, mark a visual block and yank it, and paste it into your original
buffer.

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to