Install with:
git clone git://github.com/jonaz/dotfiles.git jonaz-dotfiles
cd jonaz-dotfiles
./install
:Gbrowse - Open file on github in browser
:Gmove - move the file to another location. / means repo root. no / means relative to file current locaation.
:Gstatus - show git status
,c<space>- Toggles inline comments
:windo diffthis - diff two open splits
Old text Command New text
surr*ound_words ysiw) (surround_words)
*make strings ys$" "make strings"
[delete ar*ound me!] ds] delete around me!
remove <b>HTML t*ags</b> dst remove HTML tags
'change quot*es' cs'" "change quotes"
<b>or tag* types</b> csth1<CR> <h1>or tag types</h1>
delete(functi*on calls) dsf function calls
:args `grep -r -l ‘I hate vim’ .`
:argdo %s/I hate vim/I love vim/g | update
CTRL-t past selected stuff to command line
CTLR-R paste from bash history to command line
ALT-c cd into selected directory
"+p - paste from system clipboard
"+y - copy to system clipboard
zf - folds marked code
zo - open fold
zc - close fold
zR - open all folds
zM - close all folds
za - toggle fold under cursor
:Gdiff
dp (when you are in one of the branches, not the middle window)
:Gwrite
:Gcommit
:Gpush
:Gpull
:Gread - do a git checkout of current file.
:Gremove
:Gmove
<Leader>gac :Gcommit -a -m ""
<Leader>gc :Gcommit -m ""
<Leader>gs :Gstatus
<Leader>gb :Gblame
:wa - save all open windows
:qa - close all open windows
ctrl-w o - close all windows except current
ctrl-p - search for file/path
ctrl-d - switch mode from path to file when searching
F5 - refresh cached filelist
<F5>
: start/run (to next breakpoint/end of script)<F2>
: step over<F3>
: step into<F4>
: step out<F6>
: stop debugging<F7>
: detach script from debugger<F9>
: run to cursor<F10>
: toggle line breakpoint<F11>
: show context variables (e.g. after "eval")<F12>
: evaluate variable under cursor:Breakpoint <type> <args>
: set a breakpoint of any type (see :help VdebugBreakpoints):VdebugEval <code>
: evaluate some code and display the result<Leader>e
: evaluate the expression under visual highlight and display the result
git remote add upstream <git repository>
git remote update
git checkout -b upstream upstream/master
git cherry-pick <SHA hash of commit>
git push origin upstream
git fetch --prune