11

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?

1 Answer 1

13

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

:vert copen
3
  • 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
    Commented Mar 16, 2015 at 8:40
  • @Akshay Works for me in Vim 7.3. Commented Mar 16, 2015 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
    Commented Mar 16, 2015 at 8:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.