diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 0d1cc58..a355f04 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -34,6 +34,7 @@ set noshowmode set noruler set laststatus=0 set noshowcmd +set undofile colorscheme nord @@ -69,7 +70,14 @@ colorscheme nord " AirLatex " your login-name -let g:AirLatexUsername="cookies:overleaf_session2=s%" +let g:AirLatexUsername="cookies:overleaf_session2=s%3A0TKey254b9595rC63gLQZsvRwg9b9564.CwNUf292zMuPmgNPAZ4z%2FOgLBTDk2ynd%2BgmPXJXmuYE" + +"This allows for change paste motion cp{motion} +nmap cp :set opfunc=ChangePasteg@ +function! ChangePaste(type, ...) + silent exe "normal! `[v`]\"_c" + silent exe "normal! p" +endfunction " optional: set server name let g:AirLatexDomain="www.overleaf.com" @@ -77,6 +85,7 @@ let g:AirLatexDomain="www.overleaf.com" let g:AirLatexAllowInsecure=0 " vimtex: +let g:vimtex_view_method = 'zathura' let g:vimtex_compiler_latexmk = { 'build_dir' : '', \ 'callback' : 1, \ 'continuous' : 1, @@ -112,7 +121,7 @@ let g:vimtex_compiler_latexmk = { 'build_dir' : '', map s :!clear && shellcheck -x % " Open my bibliography file in split - map b :vsp$BIB + map b :!( st nvim $BIB & ) > /dev/null 2>&1 map r :vsp$REFER " Replace all is aliased to S.