in gVim, can the cursor be fixed and no moving?

2009-02-21 Thread eliweiqiang
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

Re: in gVim, can the cursor be fixed and no moving?

2009-02-21 Thread Charles E. Campbell, Jr.
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

Re: in gVim, can the cursor be fixed and no moving?

2009-02-21 Thread bill lam
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

Re: in gVim, can the cursor be fixed and no moving?

2009-02-22 Thread Charles E. Campbell, Jr.
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

Re: in gVim, can the cursor be fixed and no moving?

2009-02-23 Thread 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 his will do the trick for you. Rega

Re: in gVim, can the cursor be fixed and no moving?

2009-02-23 Thread A. S. Budden
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

Re: in gVim, can the cursor be fixed and no moving?

2009-02-23 Thread Tim Chase
>> 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

Re: in gVim, can the cursor be fixed and no moving?

2009-02-23 Thread Filipe
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

Re: in gVim, can the cursor be fixed and no moving?

2009-02-24 Thread Tony Mechelynck
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

Re: in gVim, can the cursor be fixed and no moving?

2009-02-24 Thread eliweiqiang
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

Re: in gVim, can the cursor be fixed and no moving?

2009-02-25 Thread Albie Janse van Rensburg
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

Re: in gVim, can the cursor be fixed and no moving?

2009-02-25 Thread Albie Janse van Rensburg
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

Re: in gVim, can the cursor be fixed and no moving?

2009-02-25 Thread eliweiqiang
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: > > >

Re: in gVim, can the cursor be fixed and no moving?

2009-02-28 Thread eliweiqiang
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 -~--~~~~--~~--~--~---

Re: in gVim, can the cursor be fixed and no moving?

2009-02-28 Thread Tony Mechelynck
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

Re: in gVim, can the cursor be fixed and no moving?

2009-02-28 Thread Ben Fritz
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-

Re: in gVim, can the cursor be fixed and no moving?

2009-02-28 Thread Tony Mechelynck
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

Re: in gVim, can the cursor be fixed and no moving?

2009-03-01 Thread eliweiqiang
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

Re: in gVim, can the cursor be fixed and no moving?

2009-03-01 Thread bill lam
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 > > >

Re: in gVim, can the cursor be fixed and no moving?

2009-03-01 Thread Raúl Núñez de Arenas Coronado
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

Re: in gVim, can the cursor be fixed and no moving?

2009-03-01 Thread eliweiqiang
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