This plug in aims to focus the current window to the maximum possible and restores window configuration.
-
ArchiveWindowConfiguration() Stores current window configuration.
-
FocusCurrentWindow() Makes the current active window take the biggest display real estate possible.
-
RestoreArchivedWindowConfig() Restores window configuration to the archived configuration.

-
ArchiveAndFocusCurrentWindow() This is basically calling ArchiveWindowConfiguration() + FocusCurrentWindow()

-
The entire flow
:FocusArchive "ArchiveWindowConfiguration()
:FocusFocus "FocusCurrentWindow()
:FocusArchiveFocus "ArchiveAndFocusCurrentWindow()
:FocusRestore "RestoreArchivedWindowConfig()With plug.vim, do this
Plug 'stdint/focus.vim'