1

Say I've got three splits open with code in, and I suddenly want to make the one I'm in fullscreen, temporarily. How can I do that?

4

When focused on it, run:

:tabe %

To open a new tab with the same file. You can navigate tabs with gT and gt among other, if you want to go back to your split.

Once you are done with it, on the "fullscreen" one, run:

:q

to close the tab (technically closes the focused window, which is the only one of the tab, and closing the last window of the tab closes the tab).

1

If your splits are vertical you can press Ctrl-w| to maximize the focused window. If splits are horizontal then press Ctrl-w_. To resize the splits press Ctrl-w=

  • This is good, but unfortunately doesn’t preserve exactly the original layout – D. Ben Knoble May 1 '19 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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