vim.how

    Cursor movement

    In normal mode you can use these commands to move the cursor around.
    h
    Move the cursor left
    j
    Move the cursor down
    k
    Move the cursor up
    l
    Move the cursor right
    w
    Move the cursor forward to the start of the next word
    W
    Move the cursor forward to the start of the next word
    The same as 'w' but it ignores punctuation.
    e
    Move the cursor forward to the end of the next word
    E
    Move the cursor forward to the end of the next word
    The same as 'e' but it ignores punctuation.
    b
    Move the cursor back to the start of the previous word
    B
    Move the cursor back to the start of the previous word
    The same as 'b' but it ignores punctuation.
    0
    Move the cursor to the start of the line
    $
    Move the cursor to the end of the line
    ^
    Move the cursor to the first non blank character of the line
    g
    _
    Move the cursor to the last non blank character of the line
    %
    Move the cursor to the matching character in a pair
    Default supported pairs are (), {} and [].
    }
    Move the cursor to the next paragraph
    When editing code it also supports functions and blocks.
    {
    Move the cursor to the previous paragraph
    When editing code it also supports functions and blocks.
    f
    x
    Move the cursor to the next occurence of character x
    The character x can be replaced with any character.
    F
    x
    Move the cursor to the previous occurence of character x
    The character x can be replaced with any character.
    t
    x
    Move the cursor to before the next occurence of character x
    The character x can be replaced with any character.
    T
    x
    Move the cursor to after the previous occurence of character x
    The character x can be replaced with any character.
    H
    Move the cursor to the top of the screen
    M
    Move the cursor to the middle of the screen
    L
    Move the cursor to the bottom of the screen
    3
    G
    Move the cursor to a specified line
    In this example the cursor is moved to line 3.
    g
    g
    Move the cursor to the first line of the file
    G
    Move the cursor to the last line of the file
    Ctrl
    +
    b
    Move the cursor up a full screen
    Ctrl
    +
    u
    Move the cursor up a half screen
    Ctrl
    +
    f
    Move the cursor down a full screen
    Ctrl
    +
    d
    Move the cursor down a half screen
    z
    z
    Center the screen on the cursor
    This will not move the cursor, only the view.
    Ctrl
    +
    e
    Move the screen down one line
    This will not move the cursor, only the view.
    Ctrl
    +
    y
    Move the screen up one line
    This will not move the cursor, only the view.