This script is intended to automate the process of creating and editing Octopress blog posts from within vim.
Set the path to your Octopress directory in your .vimrc.(default directory $HOME/octopress
)
let g:octopress_path = "path/to/dir"
You may also want to add a few mappings to stream line the behavior:
map <Leader>on :OctopressNew<CR>
map <Leader>ol :OctopressList<CR>
map <Leader>og :OctopressGrep<CR>
nmap ,og :OctopressGenerate<CR>
nmap ,od :OctopressDeploy<CR>
Create New Post:
:OctopressNew
Show Posts List:
:OctopressList
Grep Octopress Posts Directory:
:OctopressGrep
Generate jekyll site(Generate Posts):
:OctopressGenerate
Deploy Posts:
:OctopressDeploy
let g:octopress_post_suffix = "markdown"
let g:octopress_post_date = "%Y-%m-%d %H:%M"
let g:octopress_post_date = "epoch"
let g:octopress_post_date = "%D %T"
let g:octopress_comments = 0
let g:octopress_published = 0
let g:octopress_prompt_tags = 1
let g:octopress_prompt_categories = 1
let g:octopress_qfixgrep = 1
let g:octopress_vimfiler = 1
let g:octopress_template_dir_path = "path/to/dir"
" with unite.vim
let g:octopress_unite = 1
let g:octopress_unite_option = "-auto-preview -start-insert"
let g:octopress_unite_source = "file_rec"
" use bundle exec (rake 0.9.2~)
let g:octopress_bundle_exec = 1
with unite.vim
Copy it to your plugin and autoload directory.
License: Same terms as Vim itself (see license)