Vim extensions for Jekyll 2 sites.
Note: this is a prerelease version, which may change or break frequently.
Jekyll.vim provides conveniences for working with Jekyll 2 projects. It automatically detects Jekyll projects providing a set of commands available in Jekyll buffers:
Command | Description |
---|---|
:Epost {name} ... |
Quickly jump to or create posts with this family of commands including :Epost , :Spost , :Vpost , and :Tpost . Completion is provided. See [projectionist.vim][projectionist] for details. |
:Edraft {name} ... |
As above but for draft posts in _drafts/ |
:Eplugin {name} ... |
As above but for Jekyll plug-ins in _plugin |
:Elayout {name} ... |
As above but for HTML layout files |
:Einclude {name} ... |
As above but for HTML include files |
:Econfig ... |
As above but for your _config.yml file |
:Publish |
Publish a draft post to your _posts/ directory, automatically prepending the publish date to the file name |
:Dispatch |
Build your site asynchronously via [dispatch.vim][dispatch] (it even acts intelligently in the presence of a Gemfile by running bundle exec jekyll build ) |
:Start |
Start up Jekyll's server in a shell via [dispatch.vim][dispatch] (it even acts intelligently in the presence of a Gemfile by running bundle exec jekyll serve ) |
:Jekyll
wrapper around the command-line utility with completion:Slug
command to update the current post's slug based on the title
in the YAML frontmatter:Epost
family of commands and file templatesTests are written for vspec, which can be installed via vim-flavor:
bundle install
vim-flavor install
The test suite can then be run via the rake task:
rake test
The documentation in doc/
is generated from the plug-in source code via
vimdoc. Do not edit doc/jekyll.txt
directly. Refer to the
existing inline documentation as a guide for documenting new code.
The help doc can be rebuilt by running:
rake doc