Re: right-to-left text selection

2006-05-21 Thread Jared
On 5/20/2006 7:21 PM, Gerald Lai wrote: >> Hi, Gerald. Thanks for the reply. This is a pretty creative suggestion, >> but I can't get it to work quite right. I tried adding this to my >> .vimrc: >> >> nnoremap <2-LeftMouse> viwo >> vnoremap <2-LeftDrag> > > Yes, Vim should recognize the <2-Le

Re: right-to-left text selection

2006-05-20 Thread Gerald Lai
On Sat, 20 May 2006, Jared wrote: On 5/18/2006 1:52 AM, Gerald Lai wrote: On Tue, 16 May 2006, Gerald Lai wrote: I just thought of another more pleasing workaround, if you're interested. Try: nnoremap <2-LeftMouse> viwo vnoremap <2-LeftDrag> This way, if you wish to select the last char

Re: right-to-left text selection

2006-05-18 Thread Hari Krishna Dara
On Wed, 17 May 2006 at 11:41pm, Jared wrote: > On 5/17/2006 11:11 PM, Eric Arnold wrote: > > While the visual mode selection is active, hitting "o" moves to the > > opposite corner. > > > > > > > > Keep in mind that it doesn't work the same with a selection made by > > the mouse, since that leav

Re: right-to-left text selection

2006-05-17 Thread Gerald Lai
On Tue, 16 May 2006, Gerald Lai wrote: On Tue, 16 May 2006, Jared wrote: [snip] So, my question: is it somehow possible to be able to select the last character of a line when selecting from right-to-left while using selection=exclusive? [snip] I just thought of another more pleasing workar

Re: right-to-left text selection

2006-05-17 Thread Jared
On 5/17/2006 11:11 PM, Eric Arnold wrote: > While the visual mode selection is active, hitting "o" moves to the > opposite corner. > > > > Keep in mind that it doesn't work the same with a selection made by > the mouse, since that leaves it in "select" mode not visual mode, > which has some proper

Re: right-to-left text selection

2006-05-17 Thread A.J.Mechelynck
Jared wrote: On 5/17/2006 12:52 AM, Gerald Lai wrote: So, my question: is it somehow possible to be able to select the last character of a line when selecting from right-to-left while using selection=exclusive? The simplest work around is to hit "ol" (that's oh-el) to select that las

Re: right-to-left text selection

2006-05-17 Thread Eric Arnold
While the visual mode selection is active, hitting "o" moves to the opposite corner. If it isn't doing that for you, I'd check for vmap interference. 3. Changing the Visual area *visual-change* *v_o* o

Re: right-to-left text selection

2006-05-17 Thread Jared
On 5/17/2006 12:52 AM, Gerald Lai wrote: >> So, my question: is it somehow possible to be able to select the last >> character of a line when selecting from right-to-left while using >> selection=exclusive? > > The simplest work around is to hit "ol" (that's oh-el) to select that > last character

Re: right-to-left text selection

2006-05-17 Thread Jared
On 5/17/2006 5:13 AM, Georg Dahn wrote: >> >> So, my question: is it somehow possible to be able to select the >> >> last character of a line when selecting from right-to-left while using >> >> selection=exclusive? > > > > This can be done by doing > > > > :set virtualedit=onemore Well, I tried t

Re: right-to-left text selection

2006-05-17 Thread Georg Dahn
Hi! > So, my question: is it somehow possible to be able to select the last > character of a line when selecting from right-to-left while using > selection=exclusive? This can be done by doing :set virtualedit=onemore which allows the cursor to move just past the end of the line. This makes ex

Re: right-to-left text selection

2006-05-17 Thread Eric Arnold
Nevermind. Mail maddness. On 5/17/06, Eric Arnold <[EMAIL PROTECTED]> wrote: Use the "o" command to switch positions of the cursor, and then move to the left. On 5/16/06, Gerald Lai <[EMAIL PROTECTED]> wrote: > On Tue, 16 May 2006, Jared wrote: > > [snip] > > So, my question: is it somehow po

Re: right-to-left text selection

2006-05-17 Thread Eric Arnold
Use the "o" command to switch positions of the cursor, and then move to the left. On 5/16/06, Gerald Lai <[EMAIL PROTECTED]> wrote: On Tue, 16 May 2006, Jared wrote: [snip] > So, my question: is it somehow possible to be able to select the last > character of a line when selecting from right-t

Re: right-to-left text selection

2006-05-16 Thread Gerald Lai
On Tue, 16 May 2006, Jared wrote: [snip] So, my question: is it somehow possible to be able to select the last character of a line when selecting from right-to-left while using selection=exclusive? [snip] The simplest work around is to hit "ol" (that's oh-el) to select that last character. Y

right-to-left text selection

2006-05-16 Thread Jared
Ok, I have a really weird questions this time. I use the selection=exclusive option, because I don't like Vim to select the hidden "newline" character at the end of lines when I'm copying or deleting an entire line. However, this has one side effect that I have not been able to figure out. If I