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…
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
Now that we have vim installed time to get ourselves a vim folder setup.
Seeing how we should probably pick our pace up for this guide i will simply do the following in the next steps.
- Get the Vimpress plugin that actually works
- Install it
- Get the very usefull closetag plugin
So lets get cracking.
git clone https://github.com/PotHix/Vimpress.git
mv Vimpress/* .
wget http://vim.sourceforge.net/scripts/download_script.php?src_id=4318 -O closetag.vim
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
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…
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.