How can I open the result of ctrl+] in a new split?

similar: How do I open a tag with ctrl+] but open it in an existing split?

  • 1
    I can’t find any reference to it, but does <C-w><C-]> work? – D. Ben Knoble Dec 7 '18 at 2:17
  • @D.BenKnoble Yes, it does! (albeit a horizontal split) – Geremia Dec 7 '18 at 3:49

This will do it:

CTRL-W ]                    *CTRL-W_]* *CTRL-W_CTRL-]*
CTRL-W CTRL-]   Split current window in two.  Use identifier under cursor as a
        tag and jump to it in the new upper window.
        In Visual mode uses the Visually selected text as a tag.
        Make new window N high.

courtesy: D. Ben Knoble

  • One could even remap the commands to use a vertical split – D. Ben Knoble Dec 7 '18 at 4:06

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.