diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 541d0d8..b9fa3ac 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -137,11 +137,6 @@ endif " PLUGIN CONFIGURATION {{{ " ================================================================================ -" PLUGIN: vim-sneak -map f Sneak_f -map F Sneak_F -map t Sneak_t -map T Sneak_T let g:sneak#s_next = 1 let g:sneak#use_ic_scs = 1 @@ -215,19 +210,6 @@ let g:pandoc#hypertext#ausosave_on_edit_open_link=1 let g:pandoc#hypertext#create_if_no_alternates_exists=1 let g:pandoc#syntax#conceal#use = 1 let g:pandoc#syntax#conceal#urls = 1 -" -" follow and open links with pandoc -" open a file with either local means, or let the system decide -nnoremap gX :call pandoc#hypertext#OpenSystem() -nnoremap gx :call pandoc#hypertext#OpenLocal() -" open a link in the editor (this buffer, or split) -nnoremap gf :call pandoc#hypertext#OpenLink( g:pandoc#hypertext#edit_open_cmd ) -nnoremap :call pandoc#hypertext#OpenLink( g:pandoc#hypertext#edit_open_cmd ) -nnoremap gF :call pandoc#hypertext#OpenLink( g:pandoc#hypertext#split_open_cmd ) -nnoremap gF :call pandoc#hypertext#OpenLink( g:pandoc#hypertext#split_open_cmd ) -" go back a link -nnoremap gb :call pandoc#hypertext#BackFromLink() -nnoremap :call pandoc#hypertext#BackFromLink() " PLUGIN: wiki.vim if $WIKIROOT ==? "" @@ -359,16 +341,6 @@ command! -bang -nargs=* CiteMarkdown call fzf#run(fzf#wrap({ \ 'up': '25%', \ 'options': '--ansi --multi --prompt "Markdown> "' \ })) -" map @@ to automatically insert citation reference at cursor -inoremap @@ u:call fzf#run(fzf#wrap({ - \ 'source': bibtex_ls(), - \ 'sink*': function('bibtex_cite_sink_insert'), - \ 'up': '25%', - \ 'options': '--ansi --multi --prompt "Cite> "'})) -" map cc to insert a complete citation at cursor -nnoremap cc :CiteRef -" map cm to insert markdown prettified citation -nnoremap cm :CiteMarkdown " PLUGIN: vim-go " change the tabstops for go to use tabs and a width of 4 diff --git a/.config/nvim/maps.vim b/.config/nvim/maps.vim index e93308a..9ce664d 100644 --- a/.config/nvim/maps.vim +++ b/.config/nvim/maps.vim @@ -99,6 +99,12 @@ nnoremap V :vsp $MYVIMRC " source vimrc with keystroke combination nnoremap VV :source $MYVIMRC +" PLUGIN: vim-sneak +map f Sneak_f +map F Sneak_F +map t Sneak_t +map T Sneak_T + " SPELL CHECKING " Spell check set to O, 'o' for 'orthography': " Move to the prev/next spelling error with [S ]S @@ -183,3 +189,15 @@ nnoremap Q vapJgqap " Enter distraction free prose mode with F11 noremap :Goyo + +" PLUGIN: fzf-bibtex +" map @@ to automatically insert citation reference at cursor +inoremap @@ u:call fzf#run(fzf#wrap({ + \ 'source': bibtex_ls(), + \ 'sink*': function('bibtex_cite_sink_insert'), + \ 'up': '25%', + \ 'options': '--ansi --multi --prompt "Cite> "'})) +" map cc to insert a complete citation at cursor +nnoremap cc :CiteRef +" map cm to insert markdown prettified citation +nnoremap cm :CiteMarkdown