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 location.
>>>> So, how can I fix the cursor? like other editors, their cursors won't
>>>> move while scrolling.
>>>>
>>>>
>>> One interpretation: you want the cursor to remain fixed with respect to
>>> the text...
>>>
>> <snip>I am also
>> interested to know if the current line can outside the current visible
>> window or not.
>>
>>
> As I said: its a vi thing. The cursor must always remain visible.
>
> Regards,
> Chip Campbell
The only apparent exception is that of incremental search, where you'll
see the line containing the first match (if any) in the direction of the
search (with possible wraparound).
However, that exception is only apparent because, during incremental
search, the "active" cursor is on the command-line where you're typing
your search command. If you abort the search with Esc, if you hit
Backspace enough times to remove the / or ? at far left (or at far right
in 'rightleft' mode), or if you hit Enter but nothing is found, the
active cursor will go back to the line you started from, which will come
back into view; if you accept the search with Enter while a match is
being shown, the active cursor will go to that match, which, again, is
in view.
Best regards,
Tony.
--
There are three kinds of lies: Lies, Damn Lies, and Statistics.
-- Disraeli
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---