The moment you press the toggle key, the mode would be shown on the status line bottom of the screen.And no, the word "paste" or "nopaste" show momentarily on the status line bottom. I don't know how to make it visiable all the time .
Another way to sure the mode is on or off, is try pasting something without the toggle key, if the mode is not on then the paste show go haywire and if the paste is on then the paste work normary...so it's a fair indication about the mode.
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.
Great idea. I wonder if there is a way to indicate if paste mode is on / off on the status line.
The moment you press the toggle key, the mode would be shown on the status line bottom of the screen.And no, the word "paste" or "nopaste" show momentarily on the status line bottom. I don't know how to make it visiable all the time .
Another way to sure the mode is on or off, is try pasting something without the toggle key, if the mode is not on then the paste show go haywire and if the paste is on then the paste work normary...so it's a fair indication about the mode.