sotte / presenting.vim

A simple tool for presenting slides in vim based on text files.
MIT License
300 stars 50 forks source link

Error on :StartPresenting #4

Closed darkpixel closed 11 years ago

darkpixel commented 11 years ago

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

sotte commented 11 years ago

This should fix your problem.

However, most likely you tried to present a non-supported filetype. Does it work with the demo presentations?

darkpixel commented 11 years ago

How does it detect the filetype?

The filename is 'test.md' and the contents are:

# Intro                                                                         

 ** Test Slide **                                                               

 ** My Company **                                                               

# Goals                                                                         

* Overview of the project                                                       
* Overview of the technologies                                                  
* Overview of the basic operation                                               
darkpixel commented 11 years ago

Nevermind--now I see my error. I'm used to using the '.md' extension (or no extension) with GitHub instead of '.markdown'. Thanks.

sotte commented 11 years ago

Ah, I see. You can add the following to your vimrc:

autcmd BufRead,BufNewFile *.md setlocal filetype=markdown

Or you can use vim's modline in the end of the presentation to set the filetype (and more):

<!--
vim:tw=40:ft=markdown:
-->