Skip to content

Commit

Permalink
[vim] Add vim command for doi2bib
Browse files Browse the repository at this point in the history
Replace current line with the bib of that line's doi
  • Loading branch information
MarcelRobitaille committed Apr 8, 2022
1 parent a724ea9 commit 045b0f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vim/plugin/doi2bib.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function! DOI2BIB()
" Cut the current line and replace with the result of calling `doi2bib` on it.
norm dd
" @ is the unnamed register
exec 'read ! ~/.dotfiles/bin/doi2bib ' . @
endfunction
command! DOI2BIB call DOI2BIB()

0 comments on commit 045b0f5

Please sign in to comment.