I often find myself
- Opening a terminal
- Running
vim
- Starting a
:terminal
Is there a way to say vim --start-terminal
and have Vim automatically run :terminal ++curwin
as soon as it starts?
I often find myself
vim
:terminal
Is there a way to say vim --start-terminal
and have Vim automatically run :terminal ++curwin
as soon as it starts?
I assume you aren't literally asking for a --start-terminal
flag :) ...but you can specify a command for Vim to run after it starts up using the -c
flag.
So this should be as easy as
vim -c ':term ++curwin'
When I run it I am indeed in a terminal window on the shell command line and it's the only window open. Hopefully that covers what you're asking for.
--start-terminal
. It was just to try to convey the idea. Thanks!