.config/nvim/after/ftplugin/markdown.vim@db64f7947671
.config/nvim/after/ftplugin/markdown.vim
Mon, 20 May 2024 12:39:30 -0500
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Mon, 20 May 2024 12:39:30 -0500
- changeset 1169
- db64f7947671
- parent 1163
-
40367220022e
- permissions
- -rw-r--r--
Note get_active_clients deprecation
runtime ftplugin/text.vim
if !exists('b:markdown_autohtml')
let b:markdown_autohtml = 0
endif
function! s:autohtml() abort
if get(b:, 'markdown_autohtml', 0)
silent !md2html -o "%:p.html" "%:p"
endif
endfunction
augroup Markdown
autocmd!
autocmd BufWritePost <buffer> call s:autohtml()
augroup END