I have the following two mappings to turn on and then turn off the paste setting.
inoremap <F8> <esc>:set paste<cr>i
inoremap <s-F8> <esc>:set nopaste<cr>i
The first mapping works and when I press F8 while in insert mode, I see the label on my status line.
INSERT (paste)
However, when I pressed shift-F8 while in insert mode, I just the follt owing characters in my current buffer
<S-F8>
Can anyone help me understand why my second mapping isn't working as (I) expected?
Thanks Dmitri, that solved my problem.