18 karma · joined October 21, 2019
inoremap <Leader>date <C-r>=strftime("%a %B %e, %Y %H:%M:%S %p")<CR>
nnoremap <Leader>date :put=strftime("%a %B %e, %Y %H:%M:%S %p")<CR>
I am also not sure if an `<esc>` is really necessary at the end of your normal mode map.I realized that it helped me to get rid of exactly the pain with fresh installs that you mention. I realized that the two plugins give me most of the functionality that I want.
There was a bit of jumpscare for me at the end though: when the circle jumps back to being a button again. May I suggest adding a slower deflation?
`pandoc -f markdown -t latex -o input.tex --natbib input.md`
It is perhaps not unexpected that the capabilities of such a simple thing as markdown are not too overwhelming. Pandoc does not extend markdown as a markup language, it can only convert markdown to pretty much whatever you want. If you have rather precise requirements such as natbib for citations, it may be better to start with latex right away.
I usually use pandoc to produce simple short documents. Occasionally I use it to do the peer review for journals, when from a single markdown source, pandoc builds me a plain text file with latex commands substituted with unicode symbols, and also a pdf.
This all can be simplified with pandocomatic (a thing that automates calls to pandoc) and entr (a thing that invokes a command upon file update).
In the simplest form, `ls input.md | entr pandoc -o output.pdf input.md` will call pandoc each time the file input.md is updated.
To use citations, the standard way is to use the `pandoc-citeproc` filter.