Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

Write-As.Vim

Author: international📧Buy me a coffee

This is a simple plugin for vim that allows one to upload blogposts to write.as from the VIM Buffer.

Installation

The easiest way to install this plugin is, obviously, by a package manager like Pathogen or Vundle.

Plugin 'internationa1/write-as.vim'

Then, add this somewhere into your .vimrc:

" Writeas Blog Infoletg:writeas_b='YOUR BLOG'

Now open vim and run :WriteAsAuth

:WriteAsAuth
Username: janedoe
Password: *******
Success. Add to .vimrc:
letg:writeas_t='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

And add that line to your .vimrc:

" Writeas Blog Infoletg:writeas_b='YOUR BLOG'letg:writeas_t='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

Optionally you can supply your username and password, instead.

" Writeas User Infoletg:writeas_u='YOUR_USERNAME'letg:writeas_p='YOUR_PASSWORD'letg:writeas_b='YOUR BLOG'

Usage

Make sure you're in the buffer that you intend to upload as a blog post.

Anonymous Posting

:AnonPost POST TITLE
Authenticated.
Post Uploaded.

It will then dump some information into the file, for later use:

write.as/*url*
posted: 2018-01-27 T 03:31:58 Z

Blog Posting

:BlogPost POST TITLE
Authenticated.
Blog Updated.

It will then dump some information in the file:

write.as/blog/post_title
posted: 2018-01-27 T 03:33:29 Z

Couldn't be simpler.

Notes & The Future

You must have an account at write.as for this plugin to work. Experimentation with accountless access was tried, but I found that tracking tokens and slugs was a bit too much trouble then its worth, and didn't want to be the one at fault for clogging up write.as with uneditable posts.

Some things in the pipeline:

  1. Retrieving and editing posts
  2. Crossposting

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages