I've installed #neovim with a clean config file. So far the only thing I've wanted to add back is UK English spelling for markdown files, and recognising .md as markdown.
I will need to look into adding references before I can write papers with it.
I currently export from Zotero to Biblatex with https://github.com/retorquere/zotero-better-bibtex and insert #pandoc citations with https://github.com/twsh/unite-bibtex
Maybe I can streamline that a bit?
@ipt Basic question: how do I tell deoplete where to find my bibliography file?
@twsh vim-pandoc should take care of that, and it tries to be somewhat helpful. see https://github.com/vim-pandoc/vim-pandoc/blob/master/doc/pandoc.txt#L432-L459
Basically, if it finds a bibliography file with the same name as your file, it uses that, then it looks for any other bibliography file in the current dir, and then it looks for files you might have configured globally or locally to the buffer.
@twsh I forgot: the deoplete integration is in vim-pandoc-after, but you can add it with
``` vim
au! FileType pandoc,markdown * let g:deoplete#omni_patterns.pandoc = '@\w*'
```
Then deoplete is triggered after any `@` string (it marks a citation in pandoc's markdown).
@ipt It seems to work for me without vim-pandoc-after.
Thanks for your help!
Awesome! Show more
Awesome! Show more
@ipt I see what you mean now: I don't get completion just after typing '@'. I will give vim-pandoc-after a go.
@ipt Do I need `let g:pandoc#after#modules#enabled = ["deoplete"]`?
@twsh yes, that's right. Then it sets things up in its own.
With some help from @ipt I've set up https://github.com/Shougo/deoplete.nvim and https://github.com/vim-pandoc/vim-pandoc
This looks like a nice set up for writing: #pandoc cite keys complete from the bibliography I export from #zotero.
I brought back https://github.com/davidoc/taskpaper.vim too because I have a few #taskpaper files.
@ipt https://github.com/vim-pandoc/vim-markdownfootnotes looks good too.
Now I can write text, insert footnotes and citations, and turn it into a PDF. That's probably all a philosopher ought to want.
@twsh pandoc can be used to make slides too. With templates, you can use the same file to produce the slides and a nice handout.
No wonder it's so useful for philosophers: the creator of Pandoc is a philosopher (John McFarlane), and I started working on vim-pandoc while I procrastinated instead of writing my (first) Master's thesis).
@ipt Yes, it's a great tool. I've made a few contributions to the templates over the last year or so.
@twsh I use deoplete (https://github.com/Shougo/deoplete.nvim) with vim-pandoc's (https://github.com/vim-pandoc/vim-pandoc/) completion for bibtex files to insert citations, it works pretty well for me.