Skip to content

Instantly share code, notes, and snippets.

@mconnell
Forked from ezodude/MVIM Cheat Sheet
Created June 8, 2010 09:46
Show Gist options
  • Save mconnell/429824 to your computer and use it in GitHub Desktop.
Save mconnell/429824 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