:-qor :-q!must complete the task.
According to :h CTRL-W_q:
:q[uit]
:{count}q[uit]
...
If [count] is greater than the last window number the last
window will be closed:
:1quit " quit the first window
:$quit " quit the last window
:9quit " quit the last window
" if there are less than 9 windows opened
:-quit " quit the previews window
:+quit " quit the next window
:+2quit " quit the second next window
I believe the previews windowabove should read previous window...
source
share