SHARE
TWEET

Untitled

a guest Jun 19th, 2019 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function! s:bibtex_cite_sink_insert(lines)
  2.     let r=system("bibtex-cite ", a:lines)
  3.     execute ':normal! i' . r
  4.     call feedkeys('a', 'n')
  5. endfunction
  6.  
  7. inoremap <silent> @@ <c-g>u<c-o>:call fzf#run({
  8.                          'source': 'bibtex-ls',
  9.                          'sink*': function('<sid>bibtex_cite_sink_insert'),
  10.                          'up': '40%',
  11.                          'options': '--ansi --layout=reverse-list --multi --prompt "Cite> "'})<CR>
  12.      
  13. snippet q "Quote" i
  14. [$1, $2] $0
  15. endsnippet
  16.      
  17. snippet q "Quote" i
  18. [`!v feedkeys('@@')`, $2] $0
  19. endsnippet
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top