vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] Question about regions


From: lists-vile
Subject: Re: [vile] Question about regions
Date: Sat, 12 Jun 2010 15:05:08 -0400
User-agent: Mutt/1.4.2.3i

Ahhh!! Again sorry I missed that tidbit on the repeat-count arg for the q
command. There is just too much information in that manual... can you please
remove all the information that I'm not interested in:) just kidding....

I rarely care about exact or rectangle selection modes, so I did this:

noremap q 2q

This seems to work for the few cases I've tested but I'm not sure if it will
have other unwanted side effects. Are there any good reasons that I shouldn't
do this?

Thanks again,
Wayne


On Thu, Jun 10, 2010 at 06:21:59PM -0400, Thomas Dickey wrote:
> On Thu, 10 Jun 2010, address@hidden wrote:
> 
> >If I have a region selected using the 'q' operator and I don't wish to see 
> >it
> >highlighted anymore.  Is there a single key command that already performs
> >this?  Currently I just hit qq twice without moving the cursor. I know I 
> >can
> >create a map I just don't know if a command already exists for this.
> 
> no - there's no predefined key to do this.
> 
> A quick look at the code shows that functionality is implemented in a
> private function release_selection(), that's called as a side-effect of
> qq (selecting an empty region).  We could make that a bindable function...
> 
> >If I have the cursor in the middle of a line and use a sequence like this
> >^X-d}.  The entire paragraph is deleted starting from the beginning of the
> >line on which the cursor resides.  If I use a sequence where I select a 
> >region
> >like so '-dq' this does not delete entire lines on which the region begins
> >and ends it deletes only the characters selected in the region.  What I'm
> >looking for is a type of block mode region selection where entire lines are
> >selected, I'm not looking for rectangle selection.
> 
> I use "2q" for selecting whole lines.  That's mentioned at the end of the
> help for "q":
> 
>            Use the repeat-count to specify types of selection: exact=1
>            (default), full-line=2, rectangle=3.
> 
> -- 
> Thomas E. Dickey
> http://invisible-island.net
> ftp://invisible-island.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]