VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06...

Preview:

Citation preview

VIM  for  

VICTORY  @RoyOsherove  

Learning  

Why  VIM?  

•  Lightweight  •  Makes  some  edi?ng  really  easy  •  Everywhere  •  Remote  coding  via  ssh  •  Pair  programming  (ssh  +  tmux)  •  Important  skill  (like  regex)  •  Feel  Stupid,  Learn  Something  

Demo  

Favorite  keys  

•  O  and  O  •  Viw  •  Cw  and  ciw  •  ShiN-­‐C  •  ShiN-­‐v  to  line  selec?on  •  Cc  to  change  line  •  Dd  to  delete  line  

hPp://tuxradar.com/content/vim-­‐master-­‐basics  

hPp://amalloy.hubpages.com/hub/Why-­‐old-­‐text-­‐editors-­‐are-­‐s?ll-­‐great    

hPp://blog.interlinked.org/tutorials/vim_tutorial.html  

hPp://www.viemu.com/vi-­‐vim-­‐cheat-­‐sheet.gif  

Configura?on  

•  .vim  file  •  .vim  directory  •  Vim  scripts  and  plugins  •  Google  “vim  Janus”  •  Github  astrails  dotvim  

Favorite  Plugins  

•  Surround  plugin  •  Rails  •  Nerdtree  •  Command-­‐t  (fuzzy  finding)  

Other  vims  

•  Vi-­‐like  command  line  in  zsh  (bindkey  –v)  •  vsVim  for  visual  studio  •  ViEmu  for  Word  •  Vimium  and  vimperator  for  firefox  and  chrome