Skip to content

Instantly share code, notes, and snippets.

@ezodude
Created May 24, 2010 10:50
Show Gist options
  • Save ezodude/411740 to your computer and use it in GitHub Desktop.
Save ezodude/411740 to your computer and use it in GitHub Desktop.
MVIM Cheat Sheet:
* auto complete
ctrl+n
or
ctrl+p
* Running Rake for test
:Rake
* copy
visual highlight
y
* Current directory file browser
E
* Replace current character
r(replacement)
* Paste
P or p
* Ruby syntax check:
:! ruby -c %
* Remove multiple lines:
shift+v … k/j/l/h … x
* Alternare files:
:A
* List files in the buffer:
:ls
* Navigating to a file in the buffer:
:ls
:b <buffer no.>
* Switching between screens
ctrl-w w
* normalising screen sizes
ctrl-w =
* Matching do … end…
%
* Page up and down
ctrl+u ctrl+d
* Formatting
(highlight) then '='
* Horizontal split
:sp
* Vertical split
:vsp
* indent
visual highlight
shift+'>' (right)
shift+'<' (left)
==Fugitive (GIT plugin)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment