Tuesday, January 14, 2014

Re: Copying and pasting text to Vim

On 14.01.14 08:11, Tim Chase wrote:
> On 2014-01-15 00:35, Erik Christiansen wrote:
> > > > set pastetoggle=<F12>
> >
> > Ah, that's very nifty. Thanks.
> > I've mapped it to ^P, which wasn't doing anything useful.
> >
> > nnoremap ^P "+p
> > inoremap ^P ^["+p^Mi
>
> Just for the record, while I agree that ^P is somewhat useless in
> normal-mode, ^P is pretty useful in insert-mode. It (and its
> complement ^N) offers completions of all the matches of whatever
> you've typed so far. I use it multiple times per day and would hate
> to lose that functionality.

Tried that once, but forgot about it again. (It's easier to remember
stuff from 40 years ago, somehow.) I take your point, so better put them
on Alt- :

nnoremap <A-p> "+p
inoremap <A-p> ^["+p^Mi

Erik

--
History doesn't always repeat itself. Sometimes it just screams,
'Why don't you listen to me?' and lets fly with a big stick.
-John W. Campbell Jr.

--
--
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/groups/opt_out.

No comments: