vimsplitwindow

Cancel split window in Vim


I have split my windows horizontally. Now how can I return to normal mode, i.e. no split window just one window without cancelling all of my open windows. I have 5 and do not want to "quit", just want to get out of split window.


Solution

  • Press Control+w, then hit q to close each window at a time.

    Update: Also consider eckes answer which may be more useful to you, involving :on (read below) if you don't want to do it one window at a time.