diff options
Diffstat (limited to 'twittperator/echo-tweet.tw')
-rwxr-xr-x | twittperator/echo-tweet.tw | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/twittperator/echo-tweet.tw b/twittperator/echo-tweet.tw new file mode 100755 index 0000000..ff85e79 --- /dev/null +++ b/twittperator/echo-tweet.tw @@ -0,0 +1,15 @@ +/* + * Please write the below line into .vimperatorrc. + * let g:twittperator_plugin_echo_tweet = 1 + */ + +(function () { + plugins.twittperator.ChirpUserStream.addListener( + function onMsg (msg, raw) { + if (msg.text) + liberator.echo(msg.user.screen_name + ": " + msg.text, commandline.FORCE_SINGLELINE); + } + ); +})(); + +// vim: sw=2 ts=2 et fdm=marker ft=javascript: |