Sunday, July 26, 2015

toggle PASTE in insert mode

Hi everybody,

I'm trying to create a mapping in the insert mode that would toggle the PASTE option.

The mapping is defined like this:

inoremap - <ESC>:set map!<CR>i

The thing is, it works the first time and after that, when i type '-', a literal '-' is put in. According to :verbose onramp -, the mapping doesn't change.

Any ideas?

Thanks!!

--
--
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: