Skip to content

Instantly share code, notes, and snippets.

@andreaseriksson
Created June 23, 2014 18:54
Show Gist options
  • Save andreaseriksson/92c223290cc9f174b6d0 to your computer and use it in GitHub Desktop.
Save andreaseriksson/92c223290cc9f174b6d0 to your computer and use it in GitHub Desktop.
vim navigation

###Navigation character left, right; line up, down: h l k j

word/token left, right: b w

Move to the end of a word: e

Move forward to the beginning of a word. w

Move forward three words. 3w

Move backward to the beginning of a word. b

Move backward three words. 3b

Jump to the top/middle/bottom of the screen. H/M/L
Jump to end of file. G
Jump to beginning of file (same as gg). 1G

Jump to corresponding item, e.g. from
an open brace to its matching closing brace. %

Return to the line where the cursor was before the latest jump. ''
(Two single quotes.)

###Jumps Open that corresponds with word under cursor: gf

Go to previous file CTRL + o

Forward to next file CTRL + i

List of jumps :jumps

###Files and tabs Open file: :e

Open new tab :tabe

Navigate tabs gt , gT

Navigate in panes CTRL+w+w

Go to line: :123[Enter] or 123G or 123gg

Go to x lines down: 123[Enter]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment