0

I know to go to the last line of the page i use L. How do I get to the first line of the page ? or what is the opposite of L

  • See also vimtutor, for more. – VanLaser Apr 1 '16 at 18:11
5

The opposite of L is H. From :h L:

                                                H
H                       To line [count] from top (Home) of window (default:
                        first line on the window) on the first non-blank
                        character linewise.  See also 'startofline' option.
                        Cursor is adjusted for 'scrolloff' option.

                                                M
M                       To Middle line of window, on the first non-blank
                        character linewise.  See also 'startofline' option.

                                                L
L                       To line [count] from bottom of window (default: Last
                        line on the window) on the first non-blank character
                        linewise.  See also 'startofline' option.
                        Cursor is adjusted for 'scrolloff' option.
  • 2
    As a mnemonic think of H, M, and L as high, middle, and low – Peter Rincker Apr 1 '16 at 15:59
  • @PeterRincker that's the natural interpretation. Any idea why the help text preferred Home/Middle/Last? – muru Apr 1 '16 at 18:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.