vim-literate-markdown

A Vim plugin to replicate a subset of Org mode's literate programming, for Markdown files.
git clone git://git.alex.balgavy.eu/vim-literate-markdown.git
Log | Files | Refs | README

markdown.vim (537B)


      1 
      2 if exists('g:loaded_literate_markdown')
      3   finish
      4 endif
      5 
      6 
      7 command -buffer -bar Tangle call literate_markdown#Tangle()
      8 
      9 command -buffer -bar ExecPrevBlock call literate_markdown#ExecPreviousBlock()
     10 
     11 
     12 nnoremap <buffer> <Plug>LitMdExecPrevBlock :<c-u>ExecPrevBlock<CR>
     13 nnoremap <buffer> <Plug>LitMdTangle :<c-u>Tangle<CR>
     14 
     15 
     16 let b:undo_ftplugin = (exists('b:undo_ftplugin') ? b:undo_ftplugin.'|' : '')
     17 
     18 let b:undo_ftplugin .= 'delcommand Tangle | delcommand ExecPrevBlock'
     19 let b:undo_ftplugin .= '| nunmap <buffer> <Plug>LitMdExecPrevBlock'