WordPress inside of Vim inside of OpenSUSE

I am editing this blog yay~~~!
And i am doing it without leaving vim.

How do i do that? you may ask well the answer is simple i run openSUSE OS and i followed the following instructions…

Step 1

The first step in this process is aquiring vim, which is done using the following commands.
NOTE: vim is not just enough for this you also need python interpreter support therefore vim-enhanced was added.

sudo zypper install git vim vim-enhanced

Step 2

Now that we have vim installed time to get ourselves a vim folder setup.

mkdir ~/.vim

Step 3

Seeing how we should probably pick our pace up for this guide i will simply do the following in the next steps.

  1. Get the Vimpress plugin that actually works
  2. Install it
  3. Get the very usefull closetag plugin

So lets get cracking.

cd ~/.vim
git clone https://github.com/PotHix/Vimpress.git
mv Vimpress/* .
mkdir scripts
cd scripts
wget http://vim.sourceforge.net/scripts/download_script.php?src_id=4318 -O closetag.vim

Step 4

Now that you have everything prepared edit the ~/.vimrc file and add the following lines to the end of it to enable the closetag plugin.
After doing witch first opening a tag now closes it by pressing ctl+_ in the insert mode.

autocmd Filetype html,xhtml,xml,xsl source ~/.vim/scripts/closetag.vim
let g:closetag_html_style=1
source ~/.vim/scripts/closetag.vim

After doing the following steps you should have everything you need to publish to wordpress from inside of vim.
Please follow the instructions in vimpress README to setup your wordpress account.

~Have fun ~~~!
I am definately having it, still bored tho…


closetag script
Vimpress repository
Similar article i used as reference


It appears that this plugin is not very stable, and that is due to how vim was compiled for the openSUSE therefore you will actually have to compile vim by hand, and there is in fact a better version of that available as well
Following instruction at here

You can compile vim with the special flag set to –enable-multibyte which as it turns out very necessary.

Big note of warning openSUSE comes with a special global vimrc that makes vim a lot more useable than it is by default, by following those steps you are essentially ignoring it, which means a lot of the features are going to be missing. I will attach my .vimrc as an example of what it should look like.


2 responses to “WordPress inside of Vim inside of OpenSUSE

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s