1. Nicola Paolucci
  2. cfg

Commits

Nicola Paolucci  committed 891ecdc

[vim] Readded wordpress markdown hacks

  • Participants
  • Parent commits 3a012ff
  • Branches master

Comments (0)

Files changed (1)

File .vimrc

View file
  • Ignore whitespace
 "close viewport buffer"
 nmap <silent> <leader>x :hid<CR>
 " }}}
+" Wordpress workarounds {{{
+nmap <leader>pr :%s/\`\([^`]\+\)`/\<span class=\"text codecolorer\"\>\1<\/span>/p<cr>:set nohlsearch<CR>
+nmap <leader>pu :%s/<span.\{-}>\(.\{-}\)<\/span>/`\1`/p<cr>:set nohlsearch<CR>
+" }}}
 " End Keyboard Shortcuts}}}
 " Theme and Color {{{