mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.31k stars 187 forks source link

Loading saved sessions from commandline: what is the magic marker? #378

Closed llinfeng closed 5 years ago

llinfeng commented 5 years ago

I wonder what is the magic syntax to achieve the following command in Vim through the command line? image

I tried to issue the following command, but can only get a Vim window with an empty buffer named wiki, and a prompt that is asking for the session name:

gvim -c :SLoad wiki

I tried to wrap things around "wiki", but none of the following markers helped: image

mhinz commented 5 years ago

You have to quote the whole argument for -c:

gvim -c 'SLoad wiki'