diff --git a/vim/settings/yadr-keymap.vim b/vim/settings/yadr-keymap.vim index 9e26769..961745c 100644 --- a/vim/settings/yadr-keymap.vim +++ b/vim/settings/yadr-keymap.vim @@ -294,3 +294,15 @@ noremap :echo '戒黄赌毒及上下左右键!' noremap :echo '戒黄赌毒及上下左右键!' noremap :echo '戒黄赌毒及上下左右键!' inoremap fn =expand("%:t") + + +function! TogglePaste() + if &paste + setlocal nopaste + else + setlocal paste + endif +endfunction + +" set paste +nnoremap p :call TogglePaste()