All Questions
Tagged with split or vim-windows
534 questions
4 votes
2 answers
89 views
Ex command to open N copies of a file using :split
When starting Vim on the command line, you can use vim -oNto open N new files in N split windows. I am looking for an equivalent ex command. The only solutions relating to this topic that I have seen ...
0 votes
1 answer
81 views
How to keep a correct fugitive horizontal split height when using avante in a vertical split in Neovim?
Activating an avante chat in a vertical split column, changes the default behavior of fugitive's horizontal split height. I would like the correct fugitive split height to be shown, event when using ...
0 votes
0 answers
43 views
Making lualine a floating window?
In the screenshot, nvim-treesitter-context is a floating window which Neovide picks up and adds a shadow too as well as blurs the text behind it. I want that for lualine as well.
1 vote
2 answers
160 views
How to write the `[range]` for `:windo` command?
I'm reading the manual :h windo, it is explained: :[range]windo {cmd} Execute {cmd} in each |focusable| window, or only for windows in a given [range] of window numbers. It works ...
1 vote
1 answer
132 views
Mapping keys to rearrange windows
I am trying to map the Ctrl-[HJKL] keys to commands to move windows with the following in my .vimrc: nnoremap <silent> <c-s-k> :wincmd K<CR> nnoremap <silent> <c-s-j> :...
0 votes
1 answer
52 views
How to determine how many windows or tabs exist/are created/available?
I want a Vimscript expression to determine how many tabs were created. Same for windows. This is to do a conditional mapping: nnoremap <expr> <C-S-Tab> MoreThanOneWindow() ? ...
0 votes
3 answers
96 views
Open copy of buffer to existing split?
Please forgive and correct me if I have the terminology wrong. I often have a window with a split in the middle of it. I then want a copy of the buffer I'm working on to move to the existing split. ...
0 votes
2 answers
62 views
Switch between multiple popup windows with win_gotoid()
I create two popup windows and want to switch between them, but win_gotoid fails. The code below should be a minimal example of the problem I'm running into. vim9script g:pop_a = 0 g:pop_b = 0 ...
0 votes
2 answers
69 views
How to use a divider logic to change the size of the window?
I use the Ctrl w< to change the size of the windows. When the window size change a divider moves. As long that the current window is not at the extreme right of the tab the divider moves left (...
1 vote
2 answers
72 views
Opening a file in three splits of specific sizes from the command line
I have a significant number of similarly-structured LaTeX source files to edit, and find it convenient to use three splits: one for the section of the file that contains a verse, which is normally ...
0 votes
0 answers
133 views
Neovim: A combination of Edgy Neotree and Aerial causes this automatic shrinking
When I open Neovim, Aerial is focused and when I focus on the file, the height reduces. I looked through the documentations of those three plugins but can't figure out what is going on. The issue ...
1 vote
3 answers
194 views
Open Vim help in vertical split
There seems to be a few posts about this, e.g.: Opening Vim help in a vertical split window. The following works for me - opening help docs in vertical split at left - placed in ~/vimfiles/ftplugin/...
2 votes
1 answer
98 views
Is there a built-in feature to sync the editing position between two windows of the same file?
I often split two windows of the same file to edit, so that it's easier, like I can implement a function in a window and check the long comments somewhere in another window. Sometimes, after I did ...
0 votes
2 answers
254 views
How can I rebalance splits after the window size of the terminal changed?
I sometimes like using splits. Both vertical and horizontal, depending on the files I'm looking at. When creating a split, vim automatically halves the available size of, in my case, a terminal ...
0 votes
1 answer
222 views
Get an exact copy of the buffer as it appears in the window
Main Question For a plugin I'm developing, I want to show a floating window somewhere within the buffer view, but want to work out exactly which rows and columns in the window are already taken up by ...