Created
April 17, 2015 02:36
-
-
Save d0minicw0ng/473a7d9399de70b70838 to your computer and use it in GitHub Desktop.
Copy JavaScript and paste CoffeeScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Grab pbpaste clipboard contents pipe them through js2coffe and paste it | |
" in the current buffer | |
function! PasteAsCoffee() | |
:read !pbpaste | js2coffee | |
endfunction | |
command! PasteAsCoffee :call PasteAsCoffee() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment