Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: .vimrc for perl programmers

by cees (Curate)
on Mar 30, 2006 at 22:30 UTC ( #540302=note: print w/replies, xml ) Need Help??

in reply to .vimrc for perl programmers

If you want to turn on 'paste' mode while already in 'insert' mode you need a couple of extra mappings. Here is what I have (note that I have mapped F7 and F8 instead of just F11 which you were using):

:map <F7> :set paste<CR> :map <F8> :set nopaste<CR> :imap <F7> <C-O>:set paste<CR> :imap <F8> <nop> :set pastetoggle=<F8>

Now you can hit F8 at any time to switch to paste mode.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://540302]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-02-19 19:48 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (293 votes). Check out past polls.