Thursday, April 28, 2016

Odd mapping behavior...

Hey Guys,

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?

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment