Giter VIP home page Giter VIP logo

presenting.vim's Introduction

presenting.vim

This repo is archived. Use presenting.nvim instead.

presenting.vim is a vim plugin that turns your markup into presentable slides (in vim).

It is a clone of present.vim which is a clone of presen.vim. In contrast to its predecessors, presenting.vim:

  • has support for common markup languages,
  • can be extended, and
  • is documented

Great, hey?

Demonstrations

Here is what the examples/PresentingDemo.rst file looks like when presented.

presenting.vim RST demo

Markdown files are rendered a bit more fancifully. Be sure to read the help file. Here is the examples/PresentingDemo.markdown being presented.

presenting.vim Markdown demo

Installation

Use pathogen or vundle to install presenting.vim.

Configuration

Simply write your presentation in your favorite markup language. Every slide is separated by a markup language specific marker.

Filetype Slide Separator
markdown # heading
rst ~~~~
orgmode #----
GoLang slide * title

These can be overridden or extended by setting b:presenting_slide_separator for your preferred filetype in your .vimrc. For example, set the .rst slide separator to ~~~~ via:

au FileType rst let b:presenting_slide_separator = '\v(^|\n)\~{4,}'

Usage

When you want to start presenting, execute

:PresentingStart

It is possible to have multiple presentations running at the same time. Just run the command in each source document, and each slide show will be displayed in its own tab.

Once presenting, slide navigation is accomplished via these keys:

Key Action
n next slide
p previous slide
q quit

Examples

For examples of presenting.vim presentations, see:

Of course you can configure the slide separators.

Contributing

The code and issue tracker are on github. Pull requests are welcome!

presenting.vim's People

Contributors

anthonyk213 avatar jhutar avatar jonplussed avatar littleancientforestkami avatar lzh9102 avatar m3m0m2 avatar oscarm3615 avatar pct avatar pgier avatar philrunninger avatar sotte avatar xswordsx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

presenting.vim's Issues

Feature request - Speaker notes

Would be nice if you could somehow designate a section of each slide for 'speaker notes' which would just be hidden when in presentation mode

Issues in plugin

I used the sample markdown provided in the example and getting this issues
Screenshot 2022-03-24 at 10 13 32
Screenshot 2022-03-24 at 10 13 45
Screenshot 2022-03-24 at 10 14 06
No Syntax Highlighting as well... I'm not using any other markdown plugin

Wrong instructions on README

It says:

========  ===============
FILETYPE  SLIDE SEPARATOR
========  ===============
markdown  XXX
rst       ~~~~
orgmode   #----
========  ===============

While on the help (which is correct, at least for markdown) it says:

 FILETYPE       |  SLIDE SEPARATOR
 ---------------+-----------------
 markdown       |  # heading
 rst            |  ~~~~
 orgmode        |  #----

I know it is something minor, but it bugged me while testing.

Indentation

Hi,

first of all thanks for this plugin.

I was wondering if theres a way to have the main text indented so it doesn't stick to the left window border quite as much. I already tried re-enabling the sign column but with my color scheme that doesn't look too great.

I can try and implement something if given an idea for how to go about this.

Cheers,
Normen

Center slide content

It would be great to have some "formatting" in the slide. Nothing fancy, just some padding on the right and on top, in order to center the content

hide "--No lines in buffer--" message when presenting

When presenting, "--No lines in buffer--" message is shown. Would be nicer to have it hidden. I'm running vim with:

vim PresentingDemo.rst -c ":set showtabline=0" -c ":set noruler" -c ":PresentingStart"

Is it somehow possible to hide it?

Clashes with vim-markdown plugin

I use a plugin called gabrielelana/vim-markdown
and the plugin is disabled when I place presenting.vim to be above gabrielelana/vim-markdown

image

When I put vim-markdown to be top of presenting.vim, then presenting.vim is disabled and no longer works. :(

Error on :StartPresenting

Error detected while processing function 32_Start:
line 15:
E15: Invalid expression:
"SLIDE" [New File]
Press ENTER or type command to continue

Bug when disabling syntax highlighting.

I like to use the plugin with syntax highlighting disabled, as it makes moving faster, but when I disable the syntax, these "Tags" appear on the side and I can't delete.

File Type MarkDown
Screenshot_20220213-202638

Conceal in md only conceals the first md element (md)

This markdown

# Tables

| Last Name      | First Name | Born | Bacon Number |
|----------------|------------|------|--------------|
| Bacon          | Kevin      | 1958 | 0            |
| Chan           | Jackie     | 1954 | 2            |
| Reagan         | Ronald     | 1911 | 2            |
| Ryan           | Meg        | 1961 | 1            |
| Saldaña        | Zoë        | 1978 | 2            |
| Schwarzenegger | Arnold     | 1947 | 2            |
| Temple         | Shirley    | 1928 | 3            |

Renders as

                                                                          _____     _     _           
                                                                         |_   _|_ _| |__ | | ___  ___ 
                                                                           | |/ _` | '_ \| |/ _ \/ __|
                                                                           | | (_| | |_) | |  __/\__ \
                                                                           |_|\__,_|_.__/|_|\___||___/
                                                                                                      

«tr»                                                            ┏━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━┳━━━━━━━━━━━━━━┓
«th»                                                            ┃ Last Name      ┃ First Name ┃ Born ┃ Bacon Number ┃
«tr»                                                            ┣━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━╋━━━━━━╋━━━━━━━━━━━━━━┫
«tr»                                                            ┃ Bacon          ┃ Kevin      ┃ 1958 ┃ 0            ┃
«tr»                                                            ┃ Chan           ┃ Jackie     ┃ 1954 ┃ 2            ┃
«tr»                                                            ┃ Reagan         ┃ Ronald     ┃ 1911 ┃ 2            ┃
«tr»                                                            ┃ Ryan           ┃ Meg        ┃ 1961 ┃ 1            ┃
«tr»                                                            ┃ Saldaña        ┃ Zoë        ┃ 1978 ┃ 2            ┃
«tr»                                                            ┃ Schwarzenegger ┃ Arnold     ┃ 1947 ┃ 2            ┃
«tr»                                                            ┃ Temple         ┃ Shirley    ┃ 1928 ┃ 3            ┃
«tr»                                                            ┗━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━┻━━━━━━━━━━━━━━┛

fenced code block not syntax highlighted in marked down

I have ```cpp ``` for c++, and c for c, and python for python etc, i.e. the 'standard' markdown code block, however they're either displayed as a single color, or the code just disappears, the code block in markdown does not work for me on ubuntu 20.04 vim8.

is markdown supposed to render as something?

your examples make it look like the presentation mode will render markdown but my presentations just pass the characters through (see image below)

menubar_and__slide__-__dropbox_presentations-_vim

this might be by design, e.g. you're just using markdown as a way to separate slides, but might be worth updating the documentation to make clear that markdown is not being used for the actual markup.

Feature request - Modification during presentation

Hi I really appreciate your work on providing an intuitive presentation solution! It is such a relief that I can create a few slides without reaching for my mouse.

Would it be possible to modify the slide after PresentationStart? This would be exceptional for Q&As during a presentation.

Compile the markup

Does this plugin compile the markdown and not show the markdown syntax? Thanks

Populate buffer list with slides

Would be nice to have the slides available in the buffer list (following the slides order) so I can easily go to an specific slide whenever I want.

Indented checkboxes don't render correctly in present mode

image
image

The indented checkboxes doesn't render properly

  elseif a:text =~? '^[*-] \[[x ]\]'
    let new_text += [substitute(substitute(a:text, '^[*-] \[ \]', '□', ''), '^[*-] \[x\]', '■', '')]

looks like needs to be updated, but i'm not too familiar with vim regex..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.