Upgrade to Pro — share decks privately, control downloads, hide ads and more …

VimScript is pretty good: VIm London Jan 2014

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

VimScript is pretty good: VIm London Jan 2014

A talk about how learning VimScript has really improved my Vim usage.

Avatar for Jack Franklin

Jack Franklin

January 28, 2014
Tweet

More Decks by Jack Franklin

Other Decks in Technology

Transcript

  1. function! TwitterLink() let searchRegex = '@\([^ .]*\)' let searchReplace =

    '[&](http:// twitter.com/\1)' ! let oldLine = getline('.') let newLine = substitute(oldLine, searchRegex, searchReplace, ‘g') ! call setline('.', newLine) endfunction