1. Use Ctrl-V and the arrow keys to block select the text that you want
to paste.
2. Yank the text with y.
3. Block select the text that you want to replace.
4. Paste over the selection with the text you copied by pressing p.

Of course if the text you copy in is a different number of lines then it
won't work properly, but otherwise you should be happy!

Max

> -----Original Message-----
> From: Eddine [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 20, 2006 9:36 AM
> To: Vim Mailing List
> Subject: Pasting a vertical selection.
> 
> Hello Vimmers,
> 
> 
> I have to correct some datafiles, and I need to paste a column in the
> middle of my text file to replace the older column which contain bad
> values.
> 
> How can I do that ? Just to illustrate my question, I would like to
> paste in Vim a column the same way you would do on a speadsheet that
> is to say, this should not change the total number of lines...
> 
> Hope I have been clear enough,
> thank you by advance for your precious help.
> 
> Regards,
> Eddine.

Reply via email to