Skip to content

Instantly share code, notes, and snippets.

@markwu
Forked from tom--/.vimrc
Created December 17, 2013 08:49
Show Gist options
  • Save markwu/8001947 to your computer and use it in GitHub Desktop.
Save markwu/8001947 to your computer and use it in GitHub Desktop.
vmap <leader>s <esc>:'<,'> !php -r 'echo serialize(eval("return " . file_get_contents("php://stdin") . ";"));'<CR>
vmap <leader>u <esc>:'<,'> !php -r 'var_export(unserialize(file_get_contents("php://stdin")));'<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment