1. Nicola Paolucci
  2. cfg

Commits

Nicola Paolucci  committed 7130a69

[vim] ,pr and ,pu aliases to enrich markdown

  • Participants
  • Parent commits dce8115
  • Branches master

Comments (0)

Files changed (1)

File .vimrc

View file
 " In visual-mode, capitalize all words in selection
 nmap gcgc 0gUlV:s/\s\(\a\)/ \U\1/p<cr>:set nohlsearch<CR>
 " }}}
+" enrich/derich markdown with wordpress trick {{{
+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>
+" }}}
 "}}}
 " Conditional configuration (macvim,gui,etc)"{{{
 " ==================================