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 viwoC-g vnoremap 2-LeftDrag LeftDrag Yes, Vim should recognize the 2-LeftDrag

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 LeftDrag This way, if you wish to select the last

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. SNIP Keep in mind that it doesn't work the same with a selection made by the mouse, since that leaves it in

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

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

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 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 last

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. SNIP 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 properties

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