On 2012-11-10, Bradley D. Thornton wrote:
> On 11/10/2012 10:01 AM, Bradley D. Thornton wrote:
> > I installed codepad.vim to ~/.vim/plugin/ and when doing a :CPP got the
> > following errors:
> >
> > <code>
> > ~
> >
> > E354: Invalid register name: '+'
> > I found out that this plugin is failing because on my system...
> >
> > :echo has('xterm_clipboard')
> >
> > ...returns a 0 in vim and a 1 in gvim.
> > This really doesn't do all that much from me though. I then tested
> > pasting via :CPP with the plugin and it worked fine in gvim - but that's
> > not an app I actually use.
> >
> > Is there a decent pastebin like plugin for vim that I can use, similar
> > in function to the codepad.vim plugin, but works?
> >
> > Preferably one that would allow me to select a pastebin service of my
> > choosing would be absolutely ideal :)
> >
> > I really don't care if it works in gvim too, as long as it works in Vim.
> >
>
> Okay the solution is in the wiki here:
> http://vim.wikia.com/wiki/Script:2298
>
> Commenting six lines makes it so that it works in both vim and gvim. You
> won't have the URL in the buffer but it will be in the address bar of
> the browser when it is spawned, and that's good enough to be a
> convenient way to do pasties.
If your vim doesn't have the + register, it might be better to
upgrade your vim to a more complete version or use this alias:
alias vim='gvim -v'
Regards,
Gary
--
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
Saturday, November 10, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment