nmap ,op ^i
" fix high utf-8 chars to html entities like “
" big thanks to jamessan in the #vim freenode channel for help figuring this out. sheesh.
" with dcraven and tpope for the assist on vim variable interpolation below, so I only have
" to change this in one place to get both the nmap and vmap consistent :D I realize the variable
" isn't all that, yet, but I've only filled it with what I run into regularly. the more problems
" I encounter, the bigger it'll get, but only as needed. Adjust accordingly.
let myentity = "–—“”‘’…ãáçêé½"
nmap utf :.!perl -MHTML::Entities -Mutf8 -lne 'utf8::decode($_); print encode_entities($_, qq{=g:myentity} );'
"""""" visual mode mappings
vmap ;dc `>a`
vmap ;dv `>a`
vmap ;ul `>a`
vmap ;ol `>a`
vmap ;dl `>a`
vmap ;li `>a`
vmap ;al y`>a/">`F"
vmap ;at `>a`3F"
vmap ;ao `>a`3F"
vmap ;ap `>a