On 2009-11-09, [email protected] wrote:

> Hi,
> 
> I often experiment with "reformatting" lists of texts into other
> lists of texts in a most general sense. Since I am not the regexp
> guru I want to be, this often fails, must be correct, added some
> other tweaks and so on.
> Also I often apply regexp-based commands to a subset of lines of
> those texts.
> ,..and I often forget the exact range of the visual selection I done 
> before -- but this is vital to pick the correct regexp for the next
> magic to perform.
> I simply git tired to do this in a loop:
> :
> <enter partly wrong regexp based command here>
> <cr>
> (selection gets deselected here)
> :gv<cr>
> :
> <enter partly wrong regexp based command here>
> <cr>
> (selection gets deselected here)
> :gv<cr>

> .
> .
> .
> .
> and so on.
> Its simply a kind of lazyness, which lets me ask, how one
> can make the selection stay on screen as visual as functional.
> 
> Or with other and less words:
> I want to make the visual selection being permament because
> I am lazy (in this case) and lazyness is the driving part
> of all technical innovation in first place ;)

How about this?

    :cnoremap <CR> <CR>gv

To turn off that behavior,

    :cunmap <CR>

HTH,
Gary



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to