Tuesday, January 14, 2014

Re: Copying and pasting text to Vim

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.

:help i_CTRL-P

-tim



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

Post a Comment