+ F9 now able to save markdown to pdf using pandoc
This commit is contained in:
parent
769e108b47
commit
bb245df756
2 changed files with 6 additions and 1 deletions
|
@ -37,6 +37,10 @@ autocmd FileType sh imap <buffer> <F9> <esc> :w<CR>:vs<CR>:ter sh "%"<CR>
|
||||||
autocmd FileType c map <buffer> <F9> :w<CR>:vs<CR>:ter gcc "%" -o %< && ./%< && read<CR>
|
autocmd FileType c map <buffer> <F9> :w<CR>:vs<CR>:ter gcc "%" -o %< && ./%< && read<CR>
|
||||||
autocmd FileType c imap <buffer> <F9> <esc> :w<CR>:vs<CR>:ter gcc "%" -o %< && ./%< && read<CR>
|
autocmd FileType c imap <buffer> <F9> <esc> :w<CR>:vs<CR>:ter gcc "%" -o %< && ./%< && read<CR>
|
||||||
|
|
||||||
|
" pandoc (markdown to pdf)
|
||||||
|
autocmd FileType markdown map <buffer> <F9> :w<CR>:!pandoc -i "%" -o "%:r.pdf"<CR>
|
||||||
|
autocmd FileType markdown imap <buffer> <F9> <esc> :w<CR>:!pandoc -i "%" -o "%:r.pdf"<CR>
|
||||||
|
|
||||||
" ----- Automatically Render PDF
|
" ----- Automatically Render PDF
|
||||||
autocmd FileType plaintex command! -nargs=0 Lw w !pdflatex % > /dev/null
|
autocmd FileType plaintex command! -nargs=0 Lw w !pdflatex % > /dev/null
|
||||||
autocmd FileType tex command! -nargs=0 Lw w !pdflatex % > /dev/null
|
autocmd FileType tex command! -nargs=0 Lw w !pdflatex % > /dev/null
|
||||||
|
|
|
@ -63,9 +63,10 @@ augroup Binary
|
||||||
au BufWritePost *.bin set nomod | endif
|
au BufWritePost *.bin set nomod | endif
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" ----- python for vim
|
" ----- indent for corresponding extension
|
||||||
autocmd BufEnter *.py set ai sw=4 ts=4 sta et fo=croql
|
autocmd BufEnter *.py set ai sw=4 ts=4 sta et fo=croql
|
||||||
autocmd BufEnter *.c set ai sw=4 ts=4 sta et fo=croql
|
autocmd BufEnter *.c set ai sw=4 ts=4 sta et fo=croql
|
||||||
|
autocmd BufEnter *.md set ai sw=4 ts=4 sta et fo=croql
|
||||||
|
|
||||||
" ----- Auto refresh vimrc
|
" ----- Auto refresh vimrc
|
||||||
augroup myvimrc
|
augroup myvimrc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue