-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow additional commands in script.vim #13
Comments
Yeah I've been thinking a lot about allowing users to add extra vimscript stuff to their presentations. One of the presentations I'm working on right now has some "diagrams". I used the ASCII art stuff to generate a starting point, but then I tweaked it by hand to make it look a little cleaner. I've been thinking about allowing the user to have a directory of slides that they can hand-create and will auto-replace the vimdeck-generated ones. Along with an additional script file that will be added onto presentation/script.vim As far as your edits go, they look pretty basic. I wouldn't have any real objections to putting these in the default script.vim, especially if we allow the user to have overwrites. |
Sounds like we have a similar usecase, I ended up working purely on the generated slides and removing presentation.md (and thus the VimDeck dependency). But I couldn't have got to that point without VimDeck because it creates the files with numbered suffixes. I also wrote a function which you to reveal hidden text/code on a slide which works really well. Maybe what I could do is put up a git repo and we can see if we could build it in to VimDeck, if appropriate. |
Yeah. I'd love to check it out. Let me know when it's up! One thing vimdeck does well is the The problem comes when you need to edit the text of an ascii header or prefer to keep slides.md up-to-date. There needs to be a hybrid between editing the main file, and tweaking the text/behavior of the outputted presentation. |
https://github.com/krisleech/wisper-presentation You can see the ideas in the above repo. For syntax highlighting I'm using markers:
Its a bit ad-hoc at the moment, I'll probably tidy it up to be more generic at some point. |
That's awesome. I didn't even realize SyntaxRange could do markers like that. Might be a useful refactor for vimdeck. Here's an example of one of my presentations: http://github.com/tybenz/presentation-js-legos I just run |
+1 for allowing for extra vimscript. Would be great to be able to change colorscheme and modify plugin settings for presentations. |
Some more ideas here: https://github.com/aswna/vimdeck-show |
@aswna this is awesome! well done! do you have an example presentation made/given using vimdeck-show? |
@tybenz sure! Here: https://github.com/aswna/GNU-Linux-Tools-sessions |
I have to issue a few more commands than are at the top of
script.vim
to remove things likecolorcolumn
and the status bar. I also need to issuenonumber
twice (not sure why!).Would you consider allowing an additional file to to included (passed via a command line arg) or if you think its generic enough we could add it to
script.vim
for everyone. I'm currently doing the below:I think
colorcolumn
is an optional feature so it would need wrapping in anexists(+colorcolumn)
.Thoughts?
The text was updated successfully, but these errors were encountered: