Sometimes I will use the mouse to control page scroll, but the cursor
will scroll with the page, then I can not find its original location.
So, how can I fix the cursor? like other editors, their cursors won't
move while scrolling.
--~--~-~--~~~---~--~~
You receive
eliweiqiang wrote:
> Sometimes I will use the mouse to control page scroll, but the cursor
> will scroll with the page, then I can not find its original location.
> So, how can I fix the cursor? like other editors, their cursors won't
> move while scrolling.
>
One interpretation: you want the
On Sat, 21 Feb 2009, Charles E. Campbell, Jr. wrote:
>
> eliweiqiang wrote:
> > Sometimes I will use the mouse to control page scroll, but the cursor
> > will scroll with the page, then I can not find its original location.
> > So, how can I fix the cursor? like other editors, their cursors won't
bill lam wrote:
> On Sat, 21 Feb 2009, Charles E. Campbell, Jr. wrote:
>
>> eliweiqiang wrote:
>>
>>> Sometimes I will use the mouse to control page scroll, but the cursor
>>> will scroll with the page, then I can not find its original location.
>>> So, how can I fix the cursor? like oth
I use a kind of bookmark. These lines are from my vimrc file:
nmap \s :let cp=getpos("."):echo cp "Saves the
cursor's position
nmap \g :call setpos('.',cp) "Set's the cursor back
to the saved location
You must save the position before scrolling. I hope that his will do
the trick for you.
Rega
2009/2/23 Filipe :
>
> I use a kind of bookmark. These lines are from my vimrc file:
>
> nmap \s :let cp=getpos("."):echo cp "Saves the
> cursor's position
> nmap \g :call setpos('.',cp) "Set's the cursor back
> to the saved location
>
> You must save the position before scrolling. I hope that h
>> nmap \s :let cp=getpos("."):echo cp "Saves the
>> cursor's position
>> nmap \g :call setpos('.',cp) "Set's the cursor back
>> to the saved location
>>
>> You must save the position before scrolling. I hope that his will do
>> the trick for you.
>
> Just out of interest, how is this different
I only use marks for important parts of the file to which I have to go
to very often. This mappings are a kind of temporally marks to use
when I just want to take a peek further down (or up) the screen.
But someone who doesn't uses marks, the ma/'a stuff will do fine also.
Filipe Teixeira
On 2
On 22/02/09 15:43, Charles E. Campbell, Jr. wrote:
> bill lam wrote:
>> On Sat, 21 Feb 2009, Charles E. Campbell, Jr. wrote:
>>
>>> eliweiqiang wrote:
>>>
Sometimes I will use the mouse to control page scroll, but the cursor
will scroll with the page, then I can not find its original loc
I have a new idea, I want the gVim can save the cursor's position when
the "current line" changed automatically while I am using the mouse to
scroll .
So what shall I write in the vimrc?
On 2月23日, 下午7时25分, Filipe wrote:
> I use a kind of bookmark. These lines are from my vimrc file:
>
> nmap
eliweiqiang wrote:
> On 2月23日, 下午7时25分, Filipe wrote:
>
>> I use a kind of bookmark. These lines are from my vimrc file:
>>
>> nmap \s :let cp=getpos("."):echo cp "Saves the
>> cursor's position
>> nmap \g :call setpos('.',cp) "Set's the cursor back
>> to the saved location
>>
>> You must sa
Whoops!
> noremap :callHandleMouseMove("up")
> noremap :callHandleMouseMove("up")
> noremap :callReturnCursorPos()
>
the middle line should be:
noremap :callHandleMouseMove("down")
--
[ Albie Janse van Rensburg ~ http://morph.telspace.co.za ]
Desist from enumerating your fowl prio
Thanks very much!
But unfortunately I am on Win32.
That is to say unfortunately I can not use your code ..
On 2月25日, 下午5时50分, Albie Janse van Rensburg
wrote:
> eliweiqiang wrote:
> > On 2月23日, 下午7时25分, Filipe wrote:
>
> >> I use a kind of bookmark. These lines are from my vimrc file:
>
> >
Are there anybody know how to do it in Win32?
--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---
On 28/02/09 13:54, eliweiqiang wrote:
> Are there anybody know how to do it in Win32?
On Win32 just like on other platforms, in Vim it is not possible to have
the current cursor move out of view. In this respect the behaviour is
platform-independent; please reread the rest of this thread.
Best
On Feb 28, 7:22 am, Tony Mechelynck
wrote:
> On 28/02/09 13:54, eliweiqiang wrote:
>
> > Are there anybody know how to do it in Win32?
>
> On Win32 just like on other platforms, in Vim it is not possible to have
> the current cursor move out of view. In this respect the behaviour is
> platform-
On 28/02/09 21:47, Ben Fritz wrote:
>
>
> On Feb 28, 7:22 am, Tony Mechelynck
> wrote:
>> On 28/02/09 13:54, eliweiqiang wrote:
>>
>>> Are there anybody know how to do it in Win32?
>> On Win32 just like on other platforms, in Vim it is not possible to have
>> the current cursor move out of view. I
It doesn't matter.Thank you all the same.
And thanks for Ben's reminding, I am new here. :-)
On Mar 1, 5:05 am, Tony Mechelynck
wrote:
> On 28/02/09 21:47, Ben Fritz wrote:
>
>
>
> > On Feb 28, 7:22 am, Tony Mechelynck
> > wrote:
> >> On 28/02/09 13:54, eliweiqiang wrote:
>
> >>> Are there any
On Sun, 01 Mar 2009, eliweiqiang wrote:
>
> And thanks for Ben's reminding, I am new here. :-)
>
> > On 28/02/09 21:47, Ben Fritz wrote:
> > > eliweiqiang, if you BOTTOM POST WHEN ASKING QUESTIONS ON THIS LIST, as
> > > people have been reminding posters again and again in the past month
> > >
Saluton eliweiqiang :)
On Sun 1 Mar 2009 16:02 +0100, eliweiqiang dixit:
> It doesn't matter.Thank you all the same.
> And thanks for Ben's reminding, I am new here. :-)
[...]
>> > eliweiqiang, if you BOTTOM POST WHEN ASKING QUESTIONS ON THIS LIST, as
>> > people have been reminding posters ag
On Mar 2, 12:03 am, Raúl Núñez de Arenas Coronado wrote:
> Saluton eliweiqiang :)
>
> On Sun 1 Mar 2009 16:02 +0100, eliweiqiang dixit:
>
> > It doesn't matter.Thank you all the same.
> > And thanks for Ben's reminding, I am new here. :-)
> [...]
> >> > eliweiqiang, if you BOTTOM POST WHEN
21 matches
Mail list logo