18 karma · joined Oct 21, 2019 (7y ago) · 16 submissions
comment 1y ago · link · parent
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.comment 1y ago · link · parent
comment 1y ago · link · parent
comment 2y ago · link · parent
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.
comment 3y ago · link · parent
comment 4y ago · link · parent
`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.
comment 4y ago · link · parent
To use citations, the standard way is to use the `pandoc-citeproc` filter.
comment 4y ago · link · parent