This is a set of Vim-files for publishing posts to Blogger or Wordpress in your favorite markup language.
b.py - a command line tool for publishing posts.
Optional utilities:
- linkchecker: pip install linkchecker
- my plugin for checking markdown files it still is not in the main branch
Optional Vim-plugins:
- SirVer/ultisnips - snippets
- tpope/vim-ragtag - for tag closing
- aperezdc/vim-template - templates for new files
- Install via Vundle:
Plugin 'xvadim/vim-xblogger'
or just unpack the archive to$HOME/.vim
- Copy the file
external/brc.py
to the directory where you are going to prepare and keep posts - Replace
YOU_BLOG_ID
with the real ID of your blog - Setup
b.py
as described in documentation
- Start post creation:
vim my_post.blog
- Create post as described in documentation
- For publishing the post type in the normal mode:
<Leader>post
If you use plugin vim-template copy the file external/.vim-template:*.blog
to the directory of your posts.
This will insert a header to new files.
If you use higlhlight.js and plugin ultisnips copy the file snippet/blog.snippets
to the snippets directory. This adds the snippet code
which inserts the next fragment:
<pre><code class="...">
</code></pre>
Also it makes available all snippets for mardown-files.
Also the command Rc file_name
available. This command inserts the given file as fragment of code.
- Copy my plugin to the
<...>/site-packages/linkcheck/plugins
directory - Add the next lines to the
~/.linkchecker/linkcheckerrc
:
[MarkdownCheck]
filename_re=.*.(blog|markdown|md(own)?|mkdn?)$
- Run
:make