vim-presentation


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2019-04-25
使用用户:  1
Github星:  2
插件作者:  Ghislain Rodrigues

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Plugin to use Vim as slide presentation software

This plugin creates a presentation file type, to create slides in Vim.

Usage

A presentation file needs a .pres extension. Vim will then automatically
detect the filetype, use a dedicated syntax highlight and set a handful of
mappings to have amazing slides.

Syntax

This filetype offers a few specific syntax elements:

  • Comments: for some information not really needed for the presentation, but
  1. useful to have. Comments are lines starting with % (no leading space,

and at least one space after the % sign).

  • Title: A title is a line surrounded with # and #:
    # this is a title #
  • Subtitle: A subtitle is a line surrounded with ## and ##:
    ## this is a subtitle ##
  • Key point: a Key point starts with a leading *
    * This is a key point
  • Link to a .pres file: Just write a filename, if it ends with .pres, it
  1. be automatically detected.
  • Code section (inline): A string surrounded with ` :
    This line contains `some code`

Mappings

Use <space><space> or <space>s to go to the next slide.

Use <space>a to go to the previous slide.

Debug mappings

Use <space>f to go to the first occurence of a .pres file in the current

  1. I use it to quickly access filenames, combined with gf to make sure the
  2. are written properly.

Improvements

Some new syntax elements could be created.

The colorscheme should be changed to be a light one, not dark.

Example

An example of presentation can be found there:

https://github.com/padawin/vim-slides/tree/master/undotree

添加新评论