dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

markdown.vim (1091B)


      1 " Mappings
      2 inoremap <buffer> ;1 #
      3 inoremap <buffer> ;2 ##
      4 inoremap <buffer> ;3 ###
      5 inoremap <buffer> ;4 ####
      6 inoremap <buffer> ;5 #####
      7 inoremap <buffer> ;6 ######
      8 
      9 " Add an undo point at punctuation
     10 inoremap <buffer> . .<c-g>u
     11 inoremap <buffer> ? ?<c-g>u
     12 inoremap <buffer> ! !<c-g>u
     13 inoremap <buffer> , ,<c-g>u
     14 inoremap <buffer> : :<c-g>u
     15 inoremap <buffer> ; ;<c-g>u
     16 inoremap <buffer> - -<c-g>u
     17 
     18 nnoremap <buffer> <leader><CR> :silent !open %:p:r:S.pdf<CR>:redraw!<CR>
     19 nnoremap <buffer> <leader>` :<C-u>EvalBlock<CR>
     20 
     21 nmap <buffer> <leader>ce <Plug>LitMdExecPrevBlock
     22 nmap <buffer> <leader>ct <Plug>LitMdTangle
     23 
     24 " Settings
     25 compiler markdown
     26 setlocal wrap textwidth=0 wrapmargin=0 linebreak conceallevel=2 shiftwidth=4 spell
     27 
     28 " Undo_ftplugin
     29 let b:undo_ftplugin = (exists('b:undo_ftplugin') ? b:undo_ftplugin.'|' : '')
     30 let b:undo_ftplugin .= 'imapc <buffer>'
     31 let b:undo_ftplugin .= '| nmapc <buffer>'
     32 " let b:undo_ftplugin .= '| execute "au! markdown_autocmds * <buffer>"'
     33 let b:undo_ftplugin .= '| setlocal makeprg< wrap< textwidth< wrapmargin< linebreak< conceallevel< shiftwidth< spell<'