TwitVim 0.5.4

Aug 16, 2010 00:08

I released TwitVim 0.5.4 yesterday, just a day ahead of Vim 7.3 final. I haven't written about TwitVim development in a few months. The last time I wrote in any detail was while I was in the middle of writing the OAuth code. From 0.5.0 to 0.5.4, there have been over 3 dozen revisions, mostly to complete the feature set with some bugfixes and ( Read more... )

vim, twitvim, software development, coding

Leave a comment

Comments 2

dossy August 16 2010, 06:05:49 UTC
Can you exec from Vim script and capture the output? Perhaps you could simply make OpenSSL a prerequisite, and invoke "openssl dgst -sha1 -hmac $key" ... ? While it would mean users would have to install OpenSSL, it would mean that they could use off-the-shelf precompiled Vim and OpenSSL ... ?

Reply

mortonfox August 16 2010, 07:14:40 UTC
That may be possible. In Vim script, that will be something like:

system("openssl dgst -binary -sha1 -hmac key | openssl base64", "str")

to calculate the digest and base64-encode it. I'm not sure if there are any gotchas with using the 2nd argument in Vim's system() function because Vim actually writes that to a temporary file first before feeding it to the command. Regardless, I'll try it and offer this method as an option for those who wish to stick with stock Vim and cURL. Thanks.

Reply


Leave a comment

Up