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

:vertical terminal should open a vsplit #3192

Closed
thirtythreeforty opened this issue Aug 18, 2015 · 8 comments
Closed

:vertical terminal should open a vsplit #3192

thirtythreeforty opened this issue Aug 18, 2015 · 8 comments
Labels
enhancement feature request
Milestone

Comments

@thirtythreeforty
Copy link

Currently, running any of the following has the same effect as just running :terminal:

  • :vertical terminal
  • :split terminal

I'm not sure if this is by design or not, but it's certainly unexpected. It would be great if these would act similarly to other commands that begin with vert, such as :vert help.

As baumy pointed out in #neovim, a decent workaround is :vert sp | term.

@thirtythreeforty
Copy link
Author

If someone could please point me at the relevant parts of the code, I might try implementing this myself.

@justinmk justinmk added the enhancement feature request label Aug 18, 2015
@justinmk justinmk added this to the 0.3 milestone Aug 18, 2015
@ZyX-I
Copy link
Contributor

ZyX-I commented Aug 18, 2015

  1. :terminal command does not open a new window. Thus vertical terminal behaves exactly as documented. :help command does open a new window, so :vert help works.
  2. split terminal should open the window named terminal according to the documentation. It is exactly what it does. Unlike vertical split command is not a modifier.

@justinmk Unless someone is going to decide that terminal should open a new window this issue should be closed because all commands behave as documented and their behaviour is compatible. I also remember seeing some other issues that can be considered duplicate. I think that since this feature is highly requested someone may open a feature request to add :sterminal and :vterminal commands. But this exact request is invalid and inconsistent.

@ZyX-I ZyX-I closed this as completed Aug 18, 2015
@ZyX-I
Copy link
Contributor

ZyX-I commented Aug 18, 2015

Duplicate of #2315. As :vertical :tab is also a modifier that works when command opens a new window, this is why I mark it as duplicate.

@nackjicholson
Copy link

:vs|:te works for me.

@Tervicke
Copy link

Tervicke commented May 4, 2021

how can i make this open horizontal?

@mhinz
Copy link
Member

mhinz commented May 4, 2021

For usage questions, see https://neovim.discourse.group.

(The answer is :sp +te or :sp | te or :sp | te cmd arg1 arg2.)

@m-ocean-it
Copy link

m-ocean-it commented May 15, 2021

But how to open a terminal to the right side?
@mhinz @nackjicholson

@mhinz
Copy link
Member

mhinz commented May 15, 2021

For usage questions, see https://neovim.discourse.group.

@neovim neovim locked and limited conversation to collaborators May 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement feature request
Projects
None yet
Development

No branches or pull requests

7 participants