3 Comments
Aug 10, 2020Liked by Andrew Libby

You might put the below config in .vimrc file tget it a single keystroke.

"Show paste mode on-off for text/code pasting from clipboard

nnoremap <F2> :set invpaste paste?<CR>

set pastetoggle=<F2>

You can map any key you like, provide that key not already bound to other functions.

Expand full comment