mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.3k stars 186 forks source link

Extra 'Press ENTER' prompt when guioptions contain '!' #460

Closed fedorenchik closed 3 years ago

fedorenchik commented 3 years ago

Actual behaviour: After setting: :set guioptions+=! when saving session (SSave!) or restoring session from startify buffer, there will be extra Press ENTER or type command to continue prompt. Without :set guioptions+=! there isn't such prompt. Expected behaviour: No matter what's in guioptions, there should not be Press ENTER or type command to continue prompt.

mhinz commented 3 years ago

Do you happen to use gvim on Linux?

mhinz commented 3 years ago

I could reproduce the Press ENTER prompt with call system('echo foo'), if guioptions+=! is set. So, a simple :silent should fix it, since we're not interested in the output.

system() is only used once in the plugin, to create the "last session link" on Unix-like systems, so that :SL! can be used.

fedorenchik commented 3 years ago

Do you happen to use gvim on Linux?

Yes. Thank you.