Commits

Nicola Paolucci  committed 32bc15e

[vim] add ,7 to unwrap lines

  • Participants
  • Parent commits 96de693

Comments (0)

Files changed (1)

 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>
 " }}}
+" unwrap paragraphs selected {{{
+nmap <leader>7 :'<,'>/\(\S\)\n/\1\ /<cr>:'<,'>/\n/&&<CR>
+" }}}
 "}}}
 " Conditional configuration (macvim,gui,etc)"{{{
 " ==================================
 aug nick
   " Remove ALL autocommands for the current group.
   au!
-  au BufRead,BufNewFile *.md set ft=markdown foldlevel=2
+  au BufRead,BufNewFile *.md set ft=markdown foldlevel=2 textwidth=79 colorcolumn=80
   au BufRead,BufNewFile *.jsp set ft=jsp.html
   au BufRead,BufNewFile *.jspf set ft=jsp.html
   au BufRead,BufNewFile *.tag set ft=jsp.html