I've created a more sophisticated version of this for Vim7. It does a pretty good job of maintaining a rectangle while allowing normal editing. I've uploaded it to sourceforge as Edit_Visual_Block.vim .
On 4/21/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote:
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
