noahmoss
noahmoss

Reputation: 115

Open function definition in Vim split window?

I know you can use ctrl-] in Vim to jump to a definition, but is there a way to have it open in a split window rather than the current buffer? I know I could just open a new split window and then use ctrl-], but is there a faster way?

Upvotes: 4

Views: 1808

Answers (1)

romainl
romainl

Reputation: 196476

<C-w><C-]>

is unfortunately documented far away from <C-]> but it does what you want.

See :help window-tag.

Upvotes: 8

Related Questions