heavim/cfg/99-paste-toggle.vim

5 lines
179 B
VimL
Raw Normal View History

" Configure the paste toggle shortcut and a mapping that also toggles paste,
" for use with vim-which-key.
set pastetoggle=<Leader>op
nnoremap <silent> <leader>op :set paste!<cr>