vim

Opening Vim help in a vertical split window


Is there a way to get Vim help to open in a vertical split pane rather than a horizontal one?


Solution

  • :vertical (vert) works:

    :vert help
    

    You can also control whether the window splits on the left/top or the right/bottom with topleft (to) and botright (bo). For example, to open help in the right window of a vertical split:

    :vert bo help