"A.J.Mechelynck" <[EMAIL PROTECTED]> writes: >Try setting 'pastetoggle' to a single key (using <> notation for special >keys), e.g.,
> :set pastetoggle=<F11> Unfortunately, there is no <> notation for the "Stop" key. Also, I have never been able to get any of these notations to work. For example, I took the following lines: map <Esc>[224z :set paste!\|set paste?<CR> set pastetoggle=<Esc>[224z which work fine in my xterm window, allowing the F1 key to toggle paste mode on/off. I then change them to: map <F1> :set paste!\|set paste?<CR> set pastetoggle=<F1> and now the F1 key does not work at all, despite the fact that the terminfo definition for xterm properly defines the mapping: kf1=\E[224z I have never been able to understand why the <> mnemonics have never worked, but this is why all the mappings in my .vimrc file use the escape code sequences. >You might also possibly want to set 'ttimeout' on, and 'ttimeoutlen' to >something short enough (when positive, it's a number of milliseconds: set it >to more than the time between successive bytes auto-generated for a single >special key by the keyboard driver, and to less than the time between manual >keypresses when you are typing). This was a great idea but, unfortunately, it had no effect whether I set ttimeoutlen anywhere from 1 to 10000. >With what you've set, I suspect that when you hit Esc in 'paste' mode Vim >waits to see if you hit [ next. This certainly seems logical. I don't know why the suggestion above didn't work. However, I really appreciate your help. Thanks. Regards, -- Jeff