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

VimScript is pretty good: VIm London Jan 2014

VimScript is pretty good: VIm London Jan 2014

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

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