Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically start in insert mode when inside the terminal #19

Open
dagadbm opened this issue Feb 11, 2020 · 1 comment
Open

Automatically start in insert mode when inside the terminal #19

dagadbm opened this issue Feb 11, 2020 · 1 comment

Comments

@dagadbm
Copy link

dagadbm commented Feb 11, 2020

As above /\ also make it toggleable.

@dagadbm
Copy link
Author

dagadbm commented Feb 11, 2020

autocmd BufEnter term://* startinsert
autocmd BufLeave term://* stopinsert

This is what worked for me although I see a lot of people using
:au BufEnter * if &buftype == 'terminal' | :startinsert | endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant