Tuesday, June 9, 2015

insert (paste) mode - escaping

I use F9 to toggle between paste and nopaste, using these
lines in my ~/.vimrc:

nnoremap <F9> :set invpaste paste?<CR>
set pastetoggle=<F9>
set showmode


I also like to use 'jk' to escape insert mode on
occasion, so have this map:

:inoremap jk <ESC>

The latter works fine in the nopaste situation but not if
'paste' is set. Is there some simple way to make things
work if I'm in paste mode?

One additional wrinkle: I'm running VIM 7.3 on Debian,
using screen, and accessed from PuTTY.

Thanks,
John Cordes



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