6

I often find myself

  1. Opening a terminal
  2. Running vim
  3. Starting a :terminal

Is there a way to say vim --start-terminal and have Vim automatically run :terminal ++curwin as soon as it starts?

425nesp
  • 576
  • 5
  • 16

1 Answers1

9

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.

B Layer
  • 19,834
  • 2
  • 30
  • 57
  • Ha, no I'm not literally asking for --start-terminal. It was just to try to convey the idea. Thanks! – 425nesp Sep 29 '19 at 01:26