Pasting a vertical selection.

2006-06-20 Thread Eddine
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

Re: Pasting a vertical selection.

2006-06-20 Thread Tim Chase
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 ? [cut] Hope I have been clear enough, Yes, that is fairly clear. Vim supports block-wise pasting. However, last I checked

Re: Pasting a vertical selection.

2006-06-20 Thread Eddine
Fisrt of all thank you Max for your quick answer. This solution, doesn't seem to work, when I try to paset with p over my selection, instead of replacing with the values of my new column, vim insert it... I have the feeling I should type a command such withc would be a mix of

RE: Pasting a vertical selection.

2006-06-20 Thread Max Dyckhoff
Cc: Max Dyckhoff Subject: Re: Pasting a vertical selection. Fisrt of all thank you Max for your quick answer. This solution, doesn't seem to work, when I try to paset with p over my selection, instead of replacing with the values of my new column, vim insert it... I have the feeling I

Re: Pasting a vertical selection.

2006-06-20 Thread Hari Krishna Dara
On Tue, 20 Jun 2006 at 11:51am, Tim Chase wrote: 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 ? [cut] Hope I have been clear enough, Yes, that is fairly clear.

Re: Vertical selection

2006-05-19 Thread Robert Cussons
from visual mode Gerald Lai wrote: On Thu, 18 May 2006, John Love-Jensen wrote: Hi Eddine, Is it possible to make a vertical selection in a text, to have a rectangular selection in the text ? If so, how ? Yes, you are looking for the Visual mode blockwise. ^V to initiate Visual mode

Re: Vertical selection

2006-05-19 Thread Benji Fisher
On Fri, May 19, 2006 at 10:34:27AM +0200, Robert Cussons wrote: Hi guys, I knew about the Ctrl-V with I command, but have never used it with A. So out of interest I just tried it, but it appends at the next point in front of the cursor, not at the end of the line, as I expected A to act,

Re: Vertical selection

2006-05-19 Thread Robert Cussons
Thanks for the tip Benji, just to make the difference between 'I' and 'A' in blockwise visual mode clear to anyone else who might be reading this and doesn't know, 'I' will always insert in the position immediately before the selected block, whilst 'A' will always insert in the position

RE: Vertical selection

2006-05-19 Thread Suresh Govindachar
Robert Cussons wrote: ... as Benji said, pressing '$' followed by 'A' whilst in blockwise visual mode will insert at the end of each line. Sorry if no-one else cares:-) Well, I knew about I and A, but $A was news to me! Thanks. --Suresh

Vertical selection

2006-05-18 Thread Baha-Eddine MOKADEM
Hi all, Is it possible to make a vertical selection in a text, to have a rectangular selection in the text ? If so, how ? thank you, best regads. Eddine

Re: Vertical selection

2006-05-18 Thread Jürgen Krämer
Hi, Baha-Eddine MOKADEM wrote: Is it possible to make a vertical selection in a text, to have a rectangular selection in the text ? If so, how ? :help ctrl-v Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KG

Re: Vertical selection

2006-05-18 Thread Gerald Lai
On Thu, 18 May 2006, John Love-Jensen wrote: Hi Eddine, Is it possible to make a vertical selection in a text, to have a rectangular selection in the text ? If so, how ? Yes, you are looking for the Visual mode blockwise. ^V to initiate Visual mode blockwise. Use movement keys to get

Re: Vertical selection (fwd)

2006-05-18 Thread Gerald Lai
: Vertical selection Once again, Victor, Gerald, Eljay and J?rgen thank for all of you !!! It's a real pleasure to get quick and precise responses. Thank you again. Eddine

Re: Vertical selection

2006-05-18 Thread Charles E Campbell Jr
Baha-Eddine MOKADEM wrote: Is it possible to make a vertical selection in a text, to have a rectangular selection in the text ? If so, how ? In addition to the ctrl-v answer: vis.vim, available at http://vim.sourceforge.net/scripts/script.php?script_id=1195 , allows one to apply any Ex