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 split should open current document in new panel by default #1035

Closed
chrahunt opened this issue Nov 4, 2016 · 4 comments
Closed

Comments

@chrahunt
Copy link

chrahunt commented Nov 4, 2016

Please thumbs-up 👍 this issue if it personally affects you! You can do this by clicking on the emoji-face on the top right of this post. Issues with more thumbs-up will be prioritized.


What did you do?

Entered :vsp when viewing a file.

What did you expect to happen?

Another editor panel to open vertically to the right of the current editor panel with a view of the same document I had focused when executing :vsp.

What happened instead?

A blank editor panel appeared to the right of the current document.

Technical details:

  • VSCode Version: 1.7.1
  • VsCodeVim Version: 0.4.1
  • OS: Windows 10
@rebornix
Copy link
Member

rebornix commented Nov 9, 2016

oh really? So basically you want to vsp behaves the same way as Code instead of Vim.

cc @johnfn @xconverge

@FSMaxB
Copy link

FSMaxB commented Nov 10, 2016

@rebornix: Vim opens a new view of the same buffer if you do a vertical split. It behaves exactly like VSCode does in this case. (at least in my case with vim8 and no vimrc).

@chrahunt
Copy link
Author

It is also the case in Vim 7, maybe earlier but it's what I have on hand:

gif proof

@rebornix
Copy link
Member

@FSMaxB @chrahunt thanks for your detailed input and help! I didn't take this into consideration. If there is no file name for vsp, the behavior is like invoking Code's splitting window and it may be easy to fix.

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

No branches or pull requests

3 participants