Ⅰ. 插件描述
Generate remarkjs slides from your markdown filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mauromorales/vim-remark'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mauromorales/vim-remark'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mauromorales/vim-remark'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mauromorales/vim-remark
Ⅳ. 文档说明
# vim-remark
Generate remarkjs slides from your markdown files.
If like me you enjoy using remarkjs to give presentations but don't want to edit
html files in order to update the information in the slides. Then you will enjoy
using vim-remark.
This plugin helps you separate content from style when creating or updating
markdown slides.
Requirements
- Vim compiled with Ruby support
- xdg-open
- Markdown must follow remarkjs conventions
Installing
Via Vundle: Plugin 'mauromorales/vim-remark'
Using vim-remark
While editing a markdown have two commands:
:RemarkBuildwill create a file based on the html layout and the content
in the file currently being edited. It will be named after the file you are
editing but with an html extension.:RemarkPrviewwill run RemarkBuild and then open the html file in your
browser.
Using a different layout
If you don't like the default layout just create a file with your desired layout
inside the folder where your markdown slides are located. Call itlayout.html.erb and place this: <%= @markdown %> where you want your content
to be displayed.
Contributing
You can contribute to vim-remark by opening issues in github or forking and
submitting pull requests.
License
vim-remark is licensed under the MIT license.
Contact
If you have any questions, comments or issues running vim-remark either open
a github issue or send me an email to <contact@mauromorales.com>.