This is the script that I use with Vim to send my Twitter updates.
In Vim you can use it by typing
If you then type Enter it will send the current line to Twitter.
You do need to install Net::Twitter
and its dependencies.
My name is Peter Stuifzand. You're reading my personal website.