Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
URL encode/decode vim selection.
" URL encode/decode selection
vnoremap <leader>en :!python -c 'import sys,urllib;print urllib.quote(sys.stdin.read().strip())'<cr>
vnoremap <leader>de :!python -c 'import sys,urllib;print urllib.unquote(sys.stdin.read().strip())'<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment