Vim: Add support for horizontal splitting with :sp and vertical splitting with :vs

Created on 4 Jun 2018  路  4Comments  路  Source: VSCodeVim/Vim

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Feature Request

Environment:

  • Extension (VsCodeVim) version: 0.12.0
  • VSCode version: 1.23.1
  • OS version: Windows 7 Enterprise

I would like the ability to create a horizontal split with :sp and a vertical split with :vs, as is the behavior in native Vim. Currently, :sp and :vs both have the same behavior: to split the window depending on which setting is currently toggled. I would instead like to have the ability to have :sp always split horizontally, regardless of what the current split toggle setting is, and the same goes for :vs.

statuduplicate upstreavscode

Most helpful comment

As mentioned in the 1.24.0 release notes, it looks like Vim-esque grid behavior will be implemented in the insider VSCode build within the next coming weeks. It would be great to see this feature accompany that change!

See Microsoft/vscode#14909

All 4 comments

Unfortunately, VSCode does not support mixed layout (vertical and horizontal at the same time), toggling vertical split, while horizontal is active - will result in layout change to vertical and vice versa.

I think it's not really possible for now.

You can read more here

I don't know #2696 and #2697 are equivalent to Vim behavior, but maybe related?

As mentioned in the 1.24.0 release notes, it looks like Vim-esque grid behavior will be implemented in the insider VSCode build within the next coming weeks. It would be great to see this feature accompany that change!

See Microsoft/vscode#14909

I'm going to close this bug as a dupe of https://github.com/VSCodeVim/Vim/issues/2696. @rodcloutier also has a prototype going with https://github.com/VSCodeVim/Vim/pull/2697.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lucastheisen picture lucastheisen  路  3Comments

ACollectionOfAtoms picture ACollectionOfAtoms  路  3Comments

Jimmy-Z picture Jimmy-Z  路  3Comments

elithrar picture elithrar  路  3Comments

edwintorok picture edwintorok  路  3Comments