Skip to content

glidenote/octoeditor.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

octoeditor.vim (Octopress-Editor.vim)

This script is intended to automate the process of creating and editing Octopress blog posts from within vim.

Setup

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>

Commands

Create New Post:

:OctopressNew

Show Posts List:

:OctopressList

Grep Octopress Posts Directory:

:OctopressGrep

Generate jekyll site(Generate Posts):

:OctopressGenerate

Deploy Posts:

:OctopressDeploy

Options

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

Install

Copy it to your plugin and autoload directory.

License

License: Same terms as Vim itself (see license)

About

vim for octopress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •