toggle set paste through \p

This commit is contained in:
hophacker 2019-07-09 17:36:51 +08:00
parent 29704e1bc9
commit d0be379352

View File

@ -294,3 +294,15 @@ noremap <Down> :echo '戒黄赌毒及上下左右键!'<CR>
noremap <Left> :echo '戒黄赌毒及上下左右键!'<CR>
noremap <Right> :echo '戒黄赌毒及上下左右键!'<CR>
inoremap <leader>fn <C-R>=expand("%:t")<CR>
function! TogglePaste()
if &paste
setlocal nopaste
else
setlocal paste
endif
endfunction
" set paste
nnoremap <localleader>p :call TogglePaste()<cr>