Weiguang Shi wrote:

I was wondering if there is a plan to add the feature of Normal-mode
editing within a visual block. This would be very useful when drawing ASCII figures in Vim, when you want to focus on and make changes in a region....


If you want to draw ascii figures in vim, may I suggest looking into the DrawIt plugin:

 http://vim.sourceforge.net/scripts/script.php?script_id=40

If what you want, speaking from a Vim point of view, is to:

 a) visual-block select a rectangle of text
 b) copy block to a separate tab using a temporary buffer
 c) edit the tab
 d) move resulting tab's text back to the original rectangle
 e) wipe the temporary buffer

then I suggest writing a (probably fairly small) plugin to do so. I also seem to remember that somewhere along the line that you also wanted to swap visual-block selected text. For that,
please consider:

 http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs
 see "Visual Mode Based Swapping"

and get the <visswap.vim> plugin.  With it:

 a) visual block select text-block #1
 b) ctrl-y
 c) visual block select text-block #2
 d) ctrl-x

and the two text blocks will be swapped.

Regards,
Chip Campbell


Reply via email to