sotte / presenting.vim

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

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

Closed jhutar closed 7 years ago

jhutar commented 7 years ago

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?

sotte commented 7 years ago

Hey,

I just ran your command and I can't reproduce it: presenting-vim

That being said, :PresentingStart could overwrite some of the options you set, not sure.

Also if I run :PresentingStart manually after opening the file the output looks nicer: presinting-vim_after

Give me more information and maybe I can help!

sotte commented 7 years ago

Quick and very dirty workaround if you want to get rid of the tabline:

add setlocal showtabline=0 after " some options for the buffer in plugins/presenting.vim.

I guess we could make all the settings for the presentation mode configurable.

jhutar commented 7 years ago

Hello. Thank you very much for looking into this. This is what I see (using command in the initial comment):

screenshot_2016-10-25_11-02-28

and when I press "n", I get:

screenshot_2016-10-25_11-03-54

I have moved mine .vimrc and .vim/ away and still the same (after creating empty .vim/plugin/ and placing presenting.vim back of-course). Mine vim is vim-enhanced-7.4.1868-1.fc24.x86_64.

Note that what I "complain" about is that "_SLIDE_" [New File] string on first screenshot and --No lines in buffer-- string on second one. Not that it would be a blocker for me :-)

sotte commented 7 years ago

Hey,

I also get the --No lines in buffer-- msg. I don't know if it always was like that or if is a recent change. I also don't know how to get rid of it :(

I'm not sure if you're using the newest version (the one here on github), because you should have a progress indicator at the bottom saying, for example, 1/5. Make sure you install the newest version!

sotte commented 7 years ago

https://github.com/sotte/presenting.vim/commit/dd505b657932b7d1865c60f377b76446a10d4f30 fixes the issue I think!

Please reopen if it's still a problem.