Prevent Vim from messing with the format of text you paste
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.
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.