commit 25a56e43382eb03caa59b4c2103cca58c8487e82
parent 4e060242dae8e3cbfa28fd976ed15d62d0f1fdd0
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Tue, 23 Apr 2019 19:03:21 +0200
vim makeprg for markdown
Former-commit-id: 9be0990f8eef53d206f8a8822e8d6eae4cc16aeb
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/vim/autocmd.vimrc b/vim/autocmd.vimrc
@@ -4,7 +4,7 @@ augroup configgroup
autocmd FileType markdown setlocal conceallevel=2 wrap
autocmd FileType vim setlocal keywordprg=:help
autocmd FileType vimwiki setlocal wrap shiftwidth=4 tabstop=4 softtabstop=4 breakindent breakindentopt=shift:3 | cabbrev table VimwikiTable
- autocmd FileType tagbar setlocal nocursorline
+ autocmd FileType tagbar setlocal nocursorline
autocmd FileType qf setlocal nocursorline
autocmd InsertEnter * setlocal nocursorline
autocmd InsertLeave * setlocal cursorline
@@ -27,3 +27,8 @@ augroup mappings
autocmd BufEnter *.tex nnoremap <leader>tt :VimtexTocToggle<CR>
autocmd BufLeave *.tex nnoremap <leader>tt :TagbarToggle<CR>
augroup END
+
+augroup makeprgs
+ autocmd!
+ autocmd FileType markdown setlocal makeprg=pandoc\ %\ -o\ %<.pdf
+augroup END