If I use the command :copen the quickfix buffer will be opened as a horizontal split.

Is there a way (a command) to open it in a vertical split instead?


Prefixing your command with :vert modifies it to use a vertical split:

:vert copen
  • 1
    I was going to suggest this too, but found out that this does not work for me. Maybe a Vim bug? It just opens a larger horizontal split for me. – akshay Mar 16 '15 at 8:40
  • @Akshay Works for me in Vim 7.3. – 200_success Mar 16 '15 at 8:42
  • @200_success works for me too, thank you! – muffel Mar 16 '15 at 8:42
  • 1
    Oh, seems to work if I do vim -Nu NONE. Nevermind ;). EDIT: Ah it was because I always set the quickfix window to open at the bottom with wincmd J – akshay Mar 16 '15 at 8:46

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.