Pasting large text in vim

Ven Tadipatri <[email protected]>
Newsgroups gmane.editors.vim
Message-ID <CAEodY64rgQZJVGid9_rz-vEb=mwVcx7Kw5jzrXBs9KWWCsp2mA@mail.gmail.com>
Hi,
I've been struggling for years with an issue of not being able to paste
large amounts of text in vim in a timely manner.  Yeah, it was kind of bad,
because I'd lost all hope that there would be a vim upgrade which would
support a basic paste command.
  Before anyone jumps to conclusions, I did try several options -
command-shift-V, entering paste mode, tried putting some sort of weird vmap
command in my vimrc that called pbcopy. But nothing worked as I just stared
at my screen watching text very slowly being pasted.
 Then, I discovered something that changed my vim experience and just
wanted to share that with some of you. It turns out there is a
star/asterisk register, which holds the clipboard contents. So you can just
press double quote - shift 8 -then p (that's "*p) , and instantly, all your
worries about pasting large text in vim just go away.
  Now, there is some fine print that I should let people know. Your vim
compiler needs to be built with a "+clipboard" option. And of course,
finding out your vim compiler options is not common knowledge. But that's
easy to check too - just run "vim --version" and pipe it to grep clipboard,
and you can see have this amazing feature builtin.
  Don't take my word for it - try out the star register and just watch how
these 3 characters can transform your vim copy-paste experience for large
clipboard contents.

Thanks,
Ven

-- 
-- 
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAEodY64rgQZJVGid9_rz-vEb%3DmwVcx7Kw5jzrXBs9KWWCsp2mA%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.