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
option 'splitvertical' to split vertically by default #8350
Comments
While I understand that this may make sense, however |
@andreyorst Even shorter: |
Those are good shortcuts haha, however I'd mainly want to change the behavior for commands like |
Preferably we would do that via events and window-layout functions, not more options. OTOH 'splitbelow' and 'splitright' already exist, so 'splitvertical' seems justified. The patch touches many areas, so tests are needed for all of them. cc @akkartik |
That is only because it needs to pass the new flag WSP_VERT down to win_split. And that needs to be done everywhere where a window is actually split. |
One can approximate this using the
|
This comment has been minimized.
This comment has been minimized.
What's the status on this feature? I'd personally love it if I could get new windows to open vertically by default. Another big motivation for this is that plugins that generate many windows like vim-fugitive would greatly benefit from this. I think having to write I know there are workarounds but they all have their downsides. The one suggested by @justinmk is too general and forces all windows to be vertical, including when specifically telling the window to be horizontal. For helpfiles I currently use the following configuration as a workaround, but it doesn't work 100% of the time as I sometimes get weird behaviour because of it, for insance when clashing with plugins. augroup vertical_help
autocmd!
autocmd FileType help
\ setlocal bufhidden=unload |
\ wincmd L |
\ vertical resize 79
augroup END |
There's an old patch for Vim that adds an option, 'splitvertical' which opens splits vertically rather than horizontally by default:
vim-mq-patches/vertsplit
It's a nice option to have since most monitors are wider than tall. Could this be added as a feature? Or will something like this be exposed to plugins in the future.
The text was updated successfully, but these errors were encountered: