Last active
December 16, 2015 11:19
-
-
Save c0ldlimit/5426596 to your computer and use it in GitHub Desktop.
#vim cheatsheet
This file contains 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
. repeat last command | |
>G increase the indentation from current line until end of file | |
A appends at the end of current line | |
f{char} look ahead for specified character | |
; repeat last search of f command | |
, repeat last search of f command in reverse | |
cw deletes to end of word and drops into Insert mode | |
# moving around | |
gg go to top of file | |
G go to bottom of file | |
^ move to first non-blank character | |
# working with tabs | |
:tabe file_name open a new file in a new tab | |
:tabclose close current tab | |
gt go to next tab | |
gT go to previous tab | |
{i}gt go to tab at position i | |
# pasting without auto-indenting | |
:set paste | |
:set nopaste | |
# running external commands | |
:! [command to run] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment