Add pandoc usage of BIBFILE env var if existing

This commit is contained in:
Marty Oehme 2019-12-03 23:17:59 +01:00
parent 920af8e9ba
commit c0d6300dcc

View file

@ -5,6 +5,7 @@ Plug 'vim-pandoc/vim-pandoc'
" handle markdown files with pandoc (and pandoc syntax!)
let g:pandoc#modules#disabled = ["folding"]
let g:pandoc#filetypes#pandoc_markdown = 1
let g:pandoc#filetypes#handled = [ "extra", "latex", "markdown", "pandoc", "rst", "textile" ]
" disable all default keymaps
let g:pandoc#keyboard#use_default_mappings=0
let g:pandoc#hypertext#use_default_mappings=0
@ -13,7 +14,11 @@ let g:pandoc#command#prefer_pdf=1
" look for bibtex files w/ same name as edited one, then .bib in current dir, yaml frontmatter, and finally the globally set bibs file
let g:pandoc#biblio#sources="bcyg"
" the globally set bibs file
let g:pandoc#biblio#bibs=[expand("~/Nextcloud/Library/academia/academia.bib")]
if $BIBFILE ==? ""
let g:pandoc#biblio#bibs=[expand("~/documents/library/academia/academia.bib")]
else
let g:pandoc#biblio#bibs=[expand($BIBFILE)]
endif
let g:pandoc#biblio#use_bibtool=1
let g:pandoc#biblio#use_preview=1
let g:pandoc#completion#bib#mode='citeproc'