Take this and slash the dragon https://github.com/kumabotz/dotfiles/blob/master/vim
- Follow setup for
agnoster
theme from https://github.com/robbyrussell/oh-my-zsh/wiki/Themes - Install fonts from https://github.com/Lokaltog/powerline-fonts/blob/master/Inconsolata/Inconsolata%20for%20Powerline.otf
f
find in lineF
find backward in linevt<CHAR>
select until charactervi<CHAR>
select inside characterva<CHAR>
select around character (character is included)gc
comment linegcgc
uncomment linem<CHAR>
mark current line<backtick><CHAR>
go to markC-w<hjkl>
navigate window inside vimACK
https://github.com/mileszs/ack.vim#keyboard-shortcutsC-o
prev bufferC-i
next bufferC-t
open in new tab- recover closed tab
:ls
to get the buffer number:tabnew +Nbuf
or:bN
at new tab where N is the buffer number
C-p C-b
show recent filesC-x
open file in horizontal windowC-v
open file in vertical windowS-v <num>G
select until line%
go to match closing / opening tag;
,,
repeat the lastf
orF
S
clear current line; to insert mode>>
<<
indent and unindent in normal mode:Gblame
git blameq<CHAR>
start recording macro binding to<CHAR>
, stop recording withq
,@<CHAR>
to apply macrogd
go to definition[{
jump back to{
cw
change the wordD
delete till the end of line- folding for js and scss
set foldmethod=marker
set foldmarker={,}
:tabdo e
reload all tabsretab
format tab / indentation with current tab settings
- enable insert after quote (current:
jk, a
)