-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
On 11/10/2012 11:33 AM, Gary Johnson wrote:
> 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'
Yeah I thought about compiling that into vim, but I never use gvim. I
just think it's kinda weird, and if I want a gui app then I usually turn
to geany or bluefish or kate.
I run it in a terminal under X, but also in virtual consoles or over ssh
with X11 Forwarding set to yes, so I'm thinking that it's working good
for me right now since it spawns a browser I can copy the URL from the
address bar in the browser.
Or maybe I'll start using gvim ;) I'm a little aprehensive that all
those smart icons and menu items are there since I'm not used to having
my hands leave the keyboard when I'm working :)
Thanks anyway Gary!
>
> Regards,
> Gary
>
- --
Bradley D. Thornton
Manager Network Services
NorthTech Computer
TEL: +1.310.388.9469 (US)
TEL: +44.203.318.2755 (UK)
TEL: +41.43.508.05.10 (CH)
http://NorthTech.US
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Find this cert at x-hkp://pool.sks-keyservers.net
iQEcBAEBAwAGBQJQnsEYAAoJEE1wgkIhr9j3BEsH/jsYjnqfMI66g7aV/KSugqtV
1uJzOofbywW20j0+RDdb6T2/fdKfgEPq+yDcDry3CqpBDwekJX75WEB+YJ5nbDEv
7DqjRSDwJpkIgYOCfgtbGiG/9Rk4BL7op2ipH3siyL5sFjw/zK5LrMZ7lNbSWtaq
izRMA03v+UwY/SrQKCDTAAyorPV1aZSDab41rLl4SLXXg1X5QUUFNAF7rK4RsnEs
kRA7q6TI84MIM21gKQiLUQDBYxGWvdnNWQsn1JJsOZ0BYU6UTFjCQbIeP0DWzddV
i1HFWCUoEhsJJMk/mRmX4z7DPkOqCYqD7j5/hFpb/UcmBdcL9wtD83uO1ENb628=
=Duf8
-----END PGP SIGNATURE-----
--
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