Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [window-management]

Questions about interaction with the desktop windowing environment. For questions about windows for viewing buffers within Vim, use [vim-windows].

0
votes
0answers
41 views

2-pane layout on vim for writing (with narrowing fuction, goyo, and outlining)

Is it possible to get a layout like this using only vim? Desired functionalities: A) 2 pane layout like VOoM B) Narrowed region of the whole document on 2nd (right) panel with formatted like ...
1
vote
0answers
125 views

How to close splits automatically when changing file or closing VIM?

I am trying to create my own IDE like setup inside of VIM. This is what I have. I am also using Tmux here if you wonder about the bottom terminal screen. If I change file to another CPP within ...
0
votes
2answers
77 views

Maximizing gVim on Windows 10 while also restoring all open files / tabs

On Windows 10, I installed gVim 8.1, so far I have made the following progress to make it usable for me: I made changes directly to _vimrc file, in spite I know there is also a gVim specific ...
1
vote
1answer
43 views

Quit a window by its win_getid() identifier?

I use something like zoomwintab to zoom in/out of a single window view, using tabs to simulate the effect. It exposes a toggle function to zoom in on a single window, and to zoom back out to the ...
3
votes
1answer
192 views

quickfix window and location list open at the same time causes weird resize

I have two different plugins doing different things while writing Go. Sometimes the plugin that runs the testing (vim-go) will write to the quickfix window, while the plugin that does linting (ALE) ...
8
votes
2answers
1k views

Is it possible to open a tab in a window and not a window in a tab?

The question in short: Is it possible to open a tab in a window and not a window in a tab?. Like this: Instead of this: Some background related to the question: I'm used to the interface like the ...
6
votes
2answers
2k views

Vim hide buffer like in emacs?

I'm trying to figure out how the vim concept of buffers, windows, and tabs maps onto emacs. It seems to me that <c-w>s and <c-w>v are roughly equivalent to Emacs C-x 2 and C-x 3. They're ...
1
vote
0answers
81 views

How do I prevent a gVim server window stealing focus when receiving a remote command?

I'm writing a debugger and when hitting a breakpoint or stepping through code I'm making a system call that instructs a gVim server to jump to the current line of the file being debugged, like this: ...
-1
votes
1answer
82 views

How do I evenly distribute GVim windows started from a key-binding? [closed]

Code % http://vi.stackexchange.com/a/7627/2923 if has("win32") || has("win64") :vnoremap <Leader>gf :<C-U>'<,'>g/^/silent! exec "!START /B gnvim " . shellescape('<cfile>') &...
7
votes
2answers
828 views

If I split the screen and open a Netrw dir listing in one window, Vim won't let me focus that window

I'm using Vim 7.4. I have a buffer open and I type :vsplit. Vim splits the screen and I see my buffer in both windows. That's great. Just what I want. And at this point ctrl+W W switches the focus ...
3
votes
1answer
92 views

How can I reorient this window arrangement?

In vim I currently have this window arrangement +----------------------------+ | | | 1 | +----------------------------+ | ...
17
votes
1answer
3k views

How do I get the actual height and width of Vim?

winheight() and winwidth() return the number of columns/lines in the current window. What I'm looking for is something closer to the actual height and width of the editing area, or displayed area if ...
0
votes
1answer
44 views

Using registers in different terminals

I sometimes have multiple xterm windows open and run vim in both of them. Is there any way to copy text from one window to the other using registers if I don't have '+clipboard' enabled? Steps to ...
1
vote
2answers
2k views

How to map two commands with only one key

My question comes from this two commands I added on my _vimrc file: nnoremap <C-[> :set columns+=1<CR> nnoremap <C-]> :set lines+=1<CR> As is known, it will resize your gvim (...
15
votes
4answers
4k views

How do I get gvim to start maximised in Windows?

I'd like to have my editors give me as much screen real estate as possible since it increases my ability to see most of the code at once. The problem is that gvim seems to give me either an 80x25 ...