cp{motion} addded

This commit is contained in:
Alexander Bocken 2022-11-28 20:02:31 +01:00
parent a3c3b2d6de
commit bfacc63ab1
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -34,6 +34,7 @@ set noshowmode
set noruler set noruler
set laststatus=0 set laststatus=0
set noshowcmd set noshowcmd
set undofile
colorscheme nord colorscheme nord
@ -69,7 +70,14 @@ colorscheme nord
" AirLatex " AirLatex
" your login-name " 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 <silent> cp :set opfunc=ChangePaste<CR>g@
function! ChangePaste(type, ...)
silent exe "normal! `[v`]\"_c"
silent exe "normal! p"
endfunction
" optional: set server name " optional: set server name
let g:AirLatexDomain="www.overleaf.com" let g:AirLatexDomain="www.overleaf.com"
@ -77,6 +85,7 @@ let g:AirLatexDomain="www.overleaf.com"
let g:AirLatexAllowInsecure=0 let g:AirLatexAllowInsecure=0
" vimtex: " vimtex:
let g:vimtex_view_method = 'zathura'
let g:vimtex_compiler_latexmk = { 'build_dir' : '', let g:vimtex_compiler_latexmk = { 'build_dir' : '',
\ 'callback' : 1, \ 'callback' : 1,
\ 'continuous' : 1, \ 'continuous' : 1,
@ -112,7 +121,7 @@ let g:vimtex_compiler_latexmk = { 'build_dir' : '',
map <leader>s :!clear && shellcheck -x %<CR> map <leader>s :!clear && shellcheck -x %<CR>
" Open my bibliography file in split " Open my bibliography file in split
map <leader>b :vsp<space>$BIB<CR> map <leader>b :!( st nvim $BIB & ) > /dev/null 2>&1<CR>
map <leader>r :vsp<space>$REFER<CR> map <leader>r :vsp<space>$REFER<CR>
" Replace all is aliased to S. " Replace all is aliased to S.