I have multiple interesting buffers in my jumplist, but I would like to view two of them side-by-side. How would you do that? That's the general case of this question.

In my particular case, it is because I have a split next to my file with vim-fugitive, showing diffs of a commit. I want to keep that fugitive buffer open, but change the left split to view the file of a diff fugitive is showing me. So, I can press Enter on a change in fugitive, and it will go to that file (in the git-index), and then I can press C-O to jump back; but now I need to open the next/previous item on the jump list in the other split. Is that possible?

  • What have you tried? What's wrong with simply 2<C-O> or <C-O><C-O><C-O>...?
    – Matt
    Mar 4, 2021 at 9:45
  • each buffer has its own jumplist; I want to move one buffer to the previous item on the jumplist of the other buffer. C-O jumps back to the previous item on the jumplist of the current buffer, in the current buffer. Mar 4, 2021 at 12:15
  • Newly created window usually inherits jumplist automatically.
    – Matt
    Mar 4, 2021 at 12:50
  • that doesn't help at all; I mean, I don't want to seem ungrateful, but it seems as if you misread my question. Reading it over and over I don't see any clearer way to explain the problem. Mar 4, 2021 at 13:00
  • 1
    Ah, so your problem that you don't know how to tell fugitive to open file in split, and so you keep hitting "CR" and "C-O" instead of reading :h fugitive-navigation-maps?
    – Matt
    Mar 4, 2021 at 13:33


Your Answer

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

Browse other questions tagged or ask your own question.