Re: Go to start of visual selection

2007-05-16 Thread Andy Wokula
Andy Wokula schrieb: Tim Chase schrieb: How can I move the cursor the start of the visual selection? With the "o" command, yes. But how can I make sure the cursor is at the start while visual mode is on? The "`<" motion followed by "gv" sets the cursor back to the end if it was there. I thin

Re: Go to start of visual selection

2007-02-07 Thread Andy Wokula
Tim Chase schrieb: >> vnoremap gt `>:exec 'norm '.visualmode().'`' >> vnoremap gb `:exec 'norm '.visualmode().'`>' > > I don't understand why this works. > > There must be a difference between > `>v`< > and > :normal `>v`< > > "v" defines a new visual area and overwrites the `<

Re: Go to start of visual selection

2007-02-06 Thread Tim Chase
>> vnoremap gt `>:exec 'norm '.visualmode().'`' >> vnoremap gb `:exec 'norm '.visualmode().'`>' > > I don't understand why this works. > > There must be a difference between >`>v`< > and >:normal `>v`< > > "v" defines a new visual area and overwrites the `<,`> > markers. Why does "`<" aft

Re: Go to start of visual selection

2007-02-04 Thread Andy Wokula
Tim Chase schrieb: How can I move the cursor the start of the visual selection? With the "o" command, yes. But how can I make sure the cursor is at the start while visual mode is on? The "`<" motion followed by "gv" sets the cursor back to the end if it was there. I think it sounds like you w

Re: Go to start of visual selection

2007-02-04 Thread Andy Wokula
Tim Chase schrieb: How can I move the cursor the start of the visual selection? With the "o" command, yes. But how can I make sure the cursor is at the start while visual mode is on? The "`<" motion followed by "gv" sets the cursor back to the end if it was there. I think it sounds like you w

Re: Go to start of visual selection

2007-02-01 Thread Yegappan Lakshmanan
Hi Bill, On 2/1/07, Bill McCarthy <[EMAIL PROTECTED]> wrote: On Thu 1-Feb-07 11:51am -0600, Tim Chase wrote: > vnoremap gt `>:exec 'norm '.visualmode().'`' > vnoremap gb `:exec 'norm '.visualmode().'`>' Why do you use ` instead of just `< ? Just a matter of preference? The following text d

Re: Go to start of visual selection

2007-02-01 Thread Tim Chase
>> vnoremap gt `>:exec 'norm '.visualmode().'`' >> vnoremap gb `:exec 'norm '.visualmode().'`>' > > Why do you use ` instead of just `< ? Just a matter of > preference? Depending on what follows the `< vim may try to interpret it as a character-notation. I prefer not to have to think

Re: Go to start of visual selection

2007-02-01 Thread Bill McCarthy
On Thu 1-Feb-07 11:51am -0600, Tim Chase wrote: > vnoremap gt `>:exec 'norm '.visualmode().'`' > vnoremap gb `:exec 'norm '.visualmode().'`>' Why do you use ` instead of just `< ? Just a matter of preference? -- Best regards, Bill

Re: Go to start of visual selection

2007-02-01 Thread A.J.Mechelynck
Tim Chase wrote: vnoremap gt `>:exec 'norm '.visualmode().'`' vnoremap gb `:exec 'norm '.visualmode().'`>' which gives you a "Go to the Top" and "Go to the Bottom" mapping within visual mode. Won't they move the boundary of the visual area together with the cursor? Not from my testing... [

Re: Go to start of visual selection

2007-02-01 Thread Charles E Campbell Jr
Andy Wokula wrote: How can I move the cursor the start of the visual selection? With the "o" command, yes. But how can I make sure the cursor is at the start while visual mode is on? The "`<" motion followed by "gv" sets the cursor back to the end if it was there. I'm afraid that I don't

Re: Go to start of visual selection

2007-02-01 Thread Tim Chase
vnoremap gt `>:exec 'norm '.visualmode().'`' vnoremap gb `:exec 'norm '.visualmode().'`>' which gives you a "Go to the Top" and "Go to the Bottom" mapping within visual mode. Won't they move the boundary of the visual area together with the cursor? Not from my testing... [ed: a hush falls o

Re: Go to start of visual selection

2007-02-01 Thread A.J.Mechelynck
Tim Chase wrote: How can I move the cursor the start of the visual selection? With the "o" command, yes. But how can I make sure the cursor is at the start while visual mode is on? The "`<" motion followed by "gv" sets the cursor back to the end if it was there. I think it sounds like you wan

Re: Go to start of visual selection

2007-02-01 Thread Tim Chase
How can I move the cursor the start of the visual selection? With the "o" command, yes. But how can I make sure the cursor is at the start while visual mode is on? The "`<" motion followed by "gv" sets the cursor back to the end if it was there. I think it sounds like you want something like t

Go to start of visual selection

2007-02-01 Thread Andy Wokula
How can I move the cursor the start of the visual selection? With the "o" command, yes. But how can I make sure the cursor is at the start while visual mode is on? The "`<" motion followed by "gv" sets the cursor back to the end if it was there. Thx, Andy -- EOF