Close all other windows in Vim

Vim documentation: usr_08

CLOSING ALL OTHER WINDOWS If you have opened a whole bunch of windows, but now want to concentrate on one of them, this command will be useful: :o nly This closes all windows, except for the current one. If any of the other windows has changes, you will get an error message and that window won’t be closed.

Custom Search