Discussion about this post

User's avatar
Bhaskar Chowdhury's avatar

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
2 more comments...

No posts