Skip to content

Instantly share code, notes, and snippets.

@mrhockeymonkey
Last active November 20, 2017 22:39
Show Gist options
  • Save mrhockeymonkey/fa81c357f7694ccaaf0c50b5e7684830 to your computer and use it in GitHub Desktop.
Save mrhockeymonkey/fa81c357f7694ccaaf0c50b5e7684830 to your computer and use it in GitHub Desktop.
VIM cheatsheet

/ to search

? for regex search

dd to delete line

y+Move to yank

???? you can yank into seperate buffers

p paste

u undo

Ctrl+w,s to split screen

Ctrl+w,up/down to switch screen

/ word r newword n. n. n. to loop through a searched word and replace with newword

4 >> indent four lines

50G means go to line 50

ctrl+g shows which line you are on

% go to match brace (must be on a brace)

cw removes word and lets you type new on

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