Ⅰ. 插件描述
Octopress support for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tangledhelix/vim-octopress'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tangledhelix/vim-octopress'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tangledhelix/vim-octopress'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tangledhelix/vim-octopress
Ⅳ. 文档说明
[vim-octopress][] adds syntax highlighting and [Octopress][] commands to
[Vim][]. Both [Markdown][] and [Textile][] modes are supported.
Using the :Octopress command, you can create new posts, regenerate your
output files, and even deploy to your server.
NOTE: At this time, live preview mode is not supported, due to limitations in
how Vim handles background processes. It is not expected that this support
will be added unless Octopress significantly redesigns the preview mode.
If you use [Pathogen][] (and you really should):
cd ~/.vim/bundle
git clone https://github.com/tangledhelix/vim-octopress.git octopressOr, to install the old-fashioned way:
git clone https://github.com/tangledhelix/vim-octopress.git
cd vim-octopress
for i in doc ftplugin plugin syntax; do
mkdir -p ~/.vim/$i
cp $i/octopress.* ~/.vim/$i
doneFor more information, see :help octopress or read
octopress.txt online.