On 2013-04-14, Nicolas Dermine wrote:
> On 14 Apr 2013 14:10, Meino Cramer wrote:
> > Hi,
> > I have two questions:
> > How can one move the cursor in vim (not gvim) from any point in the text
> > to the last/first currently displayed line without scrolling the
> > displayed text.
> Hi mcc,
> In normal mode H moves the cursor to the top.
> L to the bottom.
> M to the middle.
> > and
> > I tried things
> > like
> > : h move
> > : h moving
> > : h move cursor
> > : h move-cursor
> > : h cursor-movements
> > and such with no success....
> > So: How should I search such a problem in the online help?
Typing ":help move" followed by Ctrl-D, as explained at the top of
":help", will show you all the help topics containing the string
"move". This list includes "movement". ":help movement" has a link
at the top to "motion.txt". Searching the motion.txt page for
"first" will eventually take you to the entry for "H".
That seems like an involved process, but part of learning to use
Vim's help system is learning to discover the words that Vim uses
for various concepts. Using Ctrl-D and browsing the topics found
that way helps.
":help index" can be a good way to find simple commands. In this
case, however, "H", "M" and "L" are described as
H cursor to line N from top of screen
M cursor to middle line of screen
L cursor to line N from bottom of screen
so searching for "first" or "last" would not have found either "H"
or "L". You would have to think of the terms "top" and "bottom" as
well as "first" and "last".
Finding those particular commands is not easy.
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@...
For more options, visit https://groups.google.com/groups/opt_out.