vlide.vim


Ⅰ. 插件描述

for presentations

Ⅱ. 基本信息

创建日期:  2017-07-21
使用用户:  1
Github星:  9
插件作者:  Javier López

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'javier-lopez/vlide-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'javier-lopez/vlide-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'javier-lopez/vlide-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/javier-lopez/vlide.vim

Ⅳ. 文档说明

About

Build Status

VLide.vim is a global plugin for interactive presentations.

<p align="center">

<img src="http://javier.io/assets/img/vlide.gif" alt="vlide demo"/>

</p>

Requirements

  • Vim 7.0+

Usage

VLide.vim allows you to use Vim as
a presentation tool.

Slides are separated by:

  • ====================================================

Subslides by:

  • ----------------------------------------------------

Besides displaying content it can run commands and modify syntax highlighting
per slide by using @blocks:

@autoexe{ vim: set tw=78 ts=8 ft=sh: }

@autoexe{sh}
    printf "%s\\n" "Hello world!"
@end

To move around, it maps the following keys:

KeyAction
<Space>Next Slide
<Backspace>Previous Slide

Subslides

Slides separated by g:vlide_subslide_separator are automatically handled as
steps of the main slide and displayed in order.


Subslide 1


Subslide 2


Subslide 3


<p align="center">

<img src="http://javier.io/assets/img/vlide-subslide.gif" alt="vlide subslide demo"/>

</p>

Tmux

A specially interesting use case is combining
vlide.vim with
tmux to launch interactive demo sessions. To get a
glanse at this, execute the following command in a new terminal:

$ tmux kill-session -t vlide-demo; tmux new-session -s vlide-demo vim

Now type :VLideReferenceSlide 12 from the recently opened tmux session. You
should see a <0> blinking a couple of times, if that's the case you've
followed the procedure sucessfully, keep pressing <Space> in the new session
to see the demo

<p align="center">

<img src="http://javier.io/assets/img/vlide-tmux.gif" alt="vlide and tmux demo"/>

</p>

See :h Vlide for more help.

Installation

Use your plugin manager of choice.

  • Vundle

    • Add Bundle 'javier-lopez/vlide.vim' to ~/.vimrc and run :BundleInstall
  • NeoBundle

    • Add NeoBundle 'javier-lopez/vlide.vim' to ~/.vimrc and run :NeoBundleInstall
  • vim-plug

    • Add Plug 'javier-lopez/vlide.vim' to ~/.vimrc and run :PlugInstall
  • Pathogen

    • git clone https://github.com/javier-lopez/vlide.vim ~/.vim/bundle/vlide.vim
  • Manual (simplest if you've never heard of vundle or pathogen), download the zip file generated from github and extract it to $HOME/.vim

    • mv vlide.vim*.zip $HOME/.vim && cd $HOME/.vim && unzip vlide.vim*.zip
    • Update the help tags from vim: :helpt ~/.vim/doc/

Inspiration and alternative plugins

添加新评论