Vim as a Blogger editor

Blogger.vim is a vim plugin for interfacing with Google’s Blogger. Below I will use my workspace git repository. To use this plugin we need pretty new ruby >= 1.9.2 and gems nokogiri and net-https-wrapper. Let’s install latest possible ruby for Debian, before that make sure you have latest updates:

1
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade

And ruby:

1
sudo apt-get install ruby1.9.3

Before we install gems , we need to resolve some dependencies:

1
sudo apt-get install libxml2-dev libxslt1-dev

Latest nokogiri 1.5.2 have some issues, so we need to use 1.5.0 which is stable:

1
sudo gem install nokogiri --version 1.5.0

And the wrapper for https:

1
sudo gem install net-https-wrapper

Finally also pandoc will be needed to display web pages in vim:

1
sudo apt-get install pandoc

Right now we are able to run vim with blogger support. First we need to configure vim, add below lines to your $HOME/.vimrc file:

1
let g:blogger\_blogid = 'your\_blogid\_here' let g:blogger\_email = 'your\_email\_here' let g:blogger\_pass = 'your\_blogger\_password\_here'

Run vim and try to list your blogger posts by typing:

1
:e blogger:list

If list of you see all your posts than it seems that plugin works good. Finally check writing feature. Create file with some text and type:

1
:w blogger:create

Few things doesn’t work as it should. Maybe I will find enough time to fix it. This article was created by using blogger.vim script.


Piotr Król
I’m into open-source firmware, drawing inspiration from the classic hacker ethos of collaborative innovation and transparency. At 3mdeb, we’re excited about our two main projects: Zarhus OS, an Embedded Linux distribution based on Yocto, and Dasharo, a coreboot downstream. Both are about the value of open development, embedded firmware resilience, platform security transparency, the right to repair, and digital sovereignty. Community is at the center of our activity. By being involved in the Dasharo Users Group, Dasharo Developers vPub, and events like the Qubes OS Summit, we connect with others who share our passion for open-source.