My vim configs
cd ~ git clone git://github.com/aurelian/vim-config.git ~/.vim ln -s ~/.vim/vimrc .vimrc
Some mappings in vimrc are MacOS specific.
Arrows are disabled in NORMAL mode
Stuff I should use more often
##in cmd adds current path
cmd-crtoggles fullscreen (in mvim, same shortcut as in iTerm2)
:set (no)list(,l) #=> hides/shows tabs and enters
Agoes to end of line and changes to INSERT mode
oINSERT mode on next line
$/^0end of line / beggining of line
paste on next line
toggle line numbers with
Ctrl-ifor jumps in NORMAL mode
Ctrl-oto run 1 command in INSERT mode
Ctrl-lmoves cursor left/right in INSERT mode
fast vertical resize window
:vsp . #=> vertical split in cwd
:Vex . #=> vertical split in file folder
o enter file/folder in horizontal split
v enter file/folder in vertical split
t enter file/folder in new tab
CTRL-y + ,
<c-p> <c-t> Open selected file in a new 'tab' after the last tabpage. <c-v> Open selected file in a 'vertical' split. <c-cr>, <c-s>, <c-x> Open selected file in a 'horizontal' split.
o to open (same as enter) go to preview file (open but maintain focus on ack.vim results) t to open in new tab T to open in new tab silently v to open in vertical split gv to open in vertical split silently q to close the quickfix window
(Vit)ality is a plugin that makes (V)im play nicely with (i)Term 2 and (t)mux.
Auto-close HTML/XML tags.
:TextilePreview# => previews the buffer