I'm working on a text file (my notes/todo document), and I want to have the to-do list part of the document open in one Vim window (to check things off), with another to look at the rest of the document. But I want the to-do list to float over the main window in one corner, instead of taking a full-width row or full-height column away from the main document view.
I can do a
:vsplit and then a
:split to get three windows in an arrangement close to what I want, but I have an extra window on the lower right that I don't know what to do with:
I want to make it look more like this mock-up, where the main window and the lower-right window are merged:
I'm not particularly picky about whether long lines in the main window wrap around or are just covered by the little window. I just don't want this extra window wasting all my space.
Is this really a job for some kind of tiling window manager at the X11/Wayland level? Or can (some version of) Vim do this? Can I (ab)use the preview window for this or the Vim 8.2 popups feature if I manage to learn vimscript?