1

I use Vim/Neovim mostly inside Wezterm, with I3 as my window manager. Also all of them offer tabbed interface. Shortcuts to cycling through the different layers is difficult, even with ergonomic keyboards and fancy key mappings. Why split in Vim if I can manage with my terminal. Also why split in the terminal if I can split a Vim window and start a :term in it and run any cli applications in it. It is not a technical troubleshoot I am asking. I am just collecting strategies and methodologies around Vim/Multiplexers/TWM in a non Reddit environment.

1
  • 1
    "Is there a common strategy"—this is hard to answer. "What is the most convenient"—this is asking for opinions. Convenient for whom? I recommend narrowing your question to focus on a specific problem.
    – D. Ben Knoble
    Commented May 14, 2023 at 15:18

1 Answer 1

0

The more I spend time with Vim/Neovim the more I tend to stay within Vim:

This allow me to navigate through the windows and tabs using the same shortcut I use to navigate through editors (Ctrl wh, Ctrl wl, ..., gt, gT)

There are some standard commands that helps to manage the windows and theirsizes:

  • Ctrl w= to tile the windows (make them "equal" size)
  • :only to keep only the current window

There are a number of plugins that may help:

  • vim-maximizer to temporary maximize one window
  • bbye to delete or wipeout a buffer without closing the corresponding window
  • winresizer to resize the windows and move buffers across windows.

This answer is of course personal but spending time answering people's questions and reading expert users I believe part of my answer is shared by others.

3
  • What does "close a buffer" mean? Assuming it's really :bdelete, how (why?) would you delete a buffer and keep a window of its content?
    – D. Ben Knoble
    Commented May 14, 2023 at 15:18
  • 1
    Ah, having read the link, I think your wording is a bit off.
    – D. Ben Knoble
    Commented May 14, 2023 at 15:20
  • Thanks for the feedback. I have tried to reformulate to get closer to Vim vocabulary. Tell me how much it is still confusing :-) Commented May 14, 2023 at 15:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.