Skip to content

Conversation

maxfl
Copy link

@maxfl maxfl commented Sep 12, 2019

Ok, no one have asked me, but here we go.

The order of split commands in vim matters:
split | vsplit will cause the following scheme:

+--+--+
|  |  |
+--+--+
|     |
+-----+

while vsplit | split will create the following splitting:

+--+--+
|  |  |
+--+  +
|  |  |
+-----+

When suckless.vim is used it creates the second type scheme regardless
of the order.

In this merge I've replaced 'wincmd n' with 'wincmd a:direction' which
fixes the issue.

…plits in vim

The order of split commands in vim matters:
`split | vsplit` will cause the following scheme:
```
+--+--+
|  |  |
+--+--+
|     |
+-----+
```

while `vsplit | split` will create the following splitting:
```
+--+--+
|  |  |
+--+  +
|  |  |
+-----+
```

When suckless.vim is used it creates the second type scheme regardless
of the order.

In this merge I've replaced 'wincmd n' with 'wincmd a:direction' which
fixes the issue.
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

Successfully merging this pull request may close these issues.

1 participant