You can do this in Vim. Go to the cursor position where you want it shifted. Press Ctrl-V (blockwise visual mode). Move the cursor down a few lines. So now you have a visual block 1 character wide and 3 lines down. Press I (that is a capital "I") to start insert mode. Type as much as you want. Press escape. What ever you typed on the first line will be repated on each line and will shift the text right. I use this to add and remove comments all the time.
HTH, Dave Sorry for the top post, no choice. ----- Original Message ----- From: Meino Christian Cramer [EMAIL PROTECTED] Sent: 04/21/2006 10:10 PM To: [email protected] Subject: In-Time insertion of vertical text Hi, (sorry for that "cryptical" subject...English isn't my mother's tongue... :) There is one feature of certain editors (for example Emacs with cua.el loaded) I would die for: With Emacs+cua.el it is possible to mark a rectangular shape of text. Then, when text is entered and that rectangle is still highlighted the other text of that file jumps letter by letter to the right to make room for the newly entered text. This happens on by-character basis. (This is NO critc and NO "looks how bad vim is compared to Emacs". I only need to describe the opposite to explain what I mean... !!! :) With vim I can mark a rectangle in block-visual mode, then enter text with "I" which appears in one line only, press <ESC> and then -- after a short pause -- is copied into all marked colomns. Especially when it comes to handling of text based tables this "live insertion" feature is a good help. Is there anything like that in vim or is there any script available to do so ? Keep hacking! mcc
