:term
has these docs for switching into terminal mode automatically: autocmd TermOpen * startinsert
— I’m wondering how I could package that up in a function or similar that would switch automatically for a specific command but not generally
not sure if that helps you but I have a shortcut setup that goes directly into insert mode like this:
nnoremap gtt :term<CR>i
I find that some modes which build on term are broken, where for example starting a terminal opens it in a split, then leaves me in my original file but now I am in insert mode
this might be interaction with placement prefix commands like :vert
and :abo
- it's intermittent
@hi895 I think that should work! I’ll add a command to execute but this seems like it should do the trick
nice 🙂
yup, works perfectly, thank you!
👌