My issue is with using the -c while calling vim from terminal like
$ vim -c jk
I want to be able to open the last session before quitting on typing viml
in terminal
For this I made a map to save the session as 'zzz' on exiting vim. All that works perfectly.
Now I made an alias in my .zshrc
/.bashrc
:
# SLoad is from a plugin Startify, it loads the session
alias viml='vim -c :SLoad zzz'
But the issue I am facing is that when I run viml
alias, this happens
Its really annoying that I have to press enter to start working. I tried using <cr>
at end but it doesn't work.
How do I fix this?