13
VIM for VICTORY @RoyOsherove

VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator

VIM  for  

VICTORY  @RoyOsherove  

Page 2: VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator

Learning  

Page 3: VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator

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  

Page 4: VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator

Demo  

Page 5: VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator

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  

Page 6: VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator
Page 7: VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator

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

Page 8: VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator

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

Page 9: VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator

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

Page 10: VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator

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

Page 11: VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator

Configura?on  

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

Page 12: VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator

Favorite  Plugins  

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

Page 13: VIM for$ VICTORY$gotocon.com/.../slides/OlaBini_and_RoyOsherove_and... · version 1.1 April 1st, 06 motion command perator extra moves the cursor, or defines the range for an operator

Other  vims  

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