Hari Krishna Dara <[email protected]> [09-11-09 18:12]:
> 
> On Sun, Nov 8, 2009 at 8:33 PM,  <[email protected]> wrote:
> >
> > Ben Fritz <[email protected]> [09-11-09 05:20]:
> >>
> >>
> >>
> >> On Nov 8, 9:11 am, [email protected] wrote:
> >> > Hi,
> >> >
> >> >  is it possible to make a visual selection permament
> >> >  that way, that only a specific command will un-visual
> >> >  the block?
> >> >
> >> >  Currently the visual block is unhighlighted after one has
> >> >  -- for example -- entered the wrong :s//-command.
> >> >
> >>
> >> If you entered the wrong :s command (or any other ex command) you
> >> don't actually need to re-highlight the block. Just press : then the
> >> up arrow to recall the last command, edit it to taste, and run it
> >> again. You'll note the '<,'> remains at the beginning of the line, so
> >> it acts on the last selected visual selection regardless of whether
> >> you are currently in Visual Mode or not.
> >> >
> >
> > Hi,
> >
> > I know that.
> >
> > I simply want to make the visual selection permament without
> > submitting extra commands / doing extra actions each time by
> > preserving the selection as such.
> >
> > Until now it seems, that this isn't possible with vim.
> >
> 
> If you explain why you want to have your selection visible, then it
> would help the folks on the list to give the right suggestion. I am
> not sure if this fits your bill, but my multiselect plugin lets you
> press <Enter> on the visual selection to add to the list of selections
> and thus make it appear permanently selected (though it is not in the
> same sense of a visual selection). The purpose is to be able to run
> commands on the set of selections, but if all you want is to see the
> area as selected, it might help.
> 
> http://www.vim.org/scripts/script.php?script_id=953
 
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>
:
<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>
:
<enter partly wrong regexp based command here>
<cr>
(selection gets deselected here)
:gv<cr>
<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 ;)



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

Reply via email to