getToken.shgets a read and write token from the Mastodon website and store it into
post.shpublish a new status from its standard input;
export.shexports all your own statuses into
How to toot from Vim?
Open Vim, write your status… You can use
g Ctrl-g to display the number of characters of current buffer.
Once done, pipe the content of the buffer to the
post.sh shell script:
:w !post.sh (you’ll probably need to adjust some path).