Last active
August 11, 2016 14:53
-
-
Save moosh3/2b6849c896c4ffa2e66dce4922d03041 to your computer and use it in GitHub Desktop.
List of Vim commands for moving around
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
j "move downwards one cursor position i "insert at the cursor position | |
k "move upwards one cursor position I "insert at the beginning of the line | |
h "move left one cursor position a "append at cursor | |
l "move right one curson position A "append at end of line | |
e "move to end of word yy "copy a line | |
w "move to beginning of word yw "copy a word | |
W "move forward a WORD p "paste after cursor | |
3w "move forward three words P "paste before cursor | |
b "move backword one word dd "cut a line | |
3b "move backword three words dw "cut current word | |
$ "move to end of line x "delete current character | |
^ "move to the first non-blank > "shift right | |
"character of the line < "shift left | |
) "jump forward one sentence / "search for pattern | |
( "jump backword one sentence ?/ "search backwards for pattern | |
} "jump foward one paragraph n "repeat search in same direction | |
{ "jump backword one paragraph N "repeat search in opposite direction | |
H "jump to top of screen :%s/old/new/gc "replace all old with new throughout file with confirmations | |
M "jump to middle of screen | |
L "jump to bottom of screen | |
G "jump to end of file | |
_G "jump to specified line | |
gg "jump to beginning of file | |
`` "jump to last jump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment