normal·mode
~ / motions
1

Moving Around

Get anywhere without the arrow keys: characters, words, lines, the whole file and the screen. Counts multiply every motion.

  1. 01

    h j k l, and counts

    Step around from the home row, and multiply any motion with a number.

    hjkl{count}j{count}k{count}{motion}
  2. 02

    Words and WORDS: w b e ge, W B E gE

    Hop a word at a time, or a whole whitespace-separated chunk at a time.

    wbegeWBEgE
  3. 03

    Along a line: 0 ^ $ g_ and |

    Jump to either end of a line, its first or last real character, or an exact column.

    0^$g_{count}|
  4. 04

    The whole file: gg, G, {n}G and :{n}

    Jump to the first line, the last line, or any line by number.

    ggG{count}G:{count}<CR>nvim
  5. 05

    Blocks and sentences: { } ( )

    Hop between blank-line-separated blocks, or sentence by sentence.

    }{)(
  6. 06

    The screen: H M L, scrolling and zz

    Jump to what you can see, scroll by half or whole screens, and recenter.

    HML<C-d><C-u><C-f><C-b><C-e>nvim
outside the editor the page is in normal mode: ? keymaps · / find · : commandsfound this useful? ☕ support it ·credits · source · not affiliated with Vim or Neovim