From ac4a78f43d4137df49fc5e5af2fa9a8a67b42d25 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 18 Apr 2021 12:02:09 +0200 Subject: [PATCH] nvim: Fix bibcite insertion position Fixed the position of my BibTex citations to be in front of the cursor not appended to it (i.e. using `i` instead of `a`). That means for example `sometext .` will put the insertion *before* the full stop instead of after it, which was kind of weird. --- nvim/.config/nvim/after/plugin/bibcite.vim | 2 +- nvim/.config/nvim/spell/en.utf-8.add | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/after/plugin/bibcite.vim b/nvim/.config/nvim/after/plugin/bibcite.vim index 9c61b5c..9b1b248 100644 --- a/nvim/.config/nvim/after/plugin/bibcite.vim +++ b/nvim/.config/nvim/after/plugin/bibcite.vim @@ -20,7 +20,7 @@ endfunction " insert citation from normal mode at cursor (with brackets) function! s:bibtex_cite_sink(lines) let r=system("bibtex-cite ", a:lines) - execute ':normal! a[' . r . ']' + execute ':normal! i[' . r . ']' endfunction command! -bang -nargs=* CiteRef call fzf#run(fzf#wrap({ \ 'source': bibtex_ls(), diff --git a/nvim/.config/nvim/spell/en.utf-8.add b/nvim/.config/nvim/spell/en.utf-8.add index 8079123..e857d92 100644 --- a/nvim/.config/nvim/spell/en.utf-8.add +++ b/nvim/.config/nvim/spell/en.utf-8.add @@ -98,3 +98,4 @@ weaponization blog flexicurity indices +Anthropocene