1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-10 02:28:02 +00:00

Add Open A Tag In A Split Window as a vim til

This commit is contained in:
jbranchaud
2016-03-07 21:13:48 -06:00
parent 4ed73fc685
commit e62041fa67
2 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
# Open A Tag In A Split Window
Using tags and `ctrl-]` is a quick way to jump from the use of a keyword to
the declaration or definition whether in the same file or another file.
Sometimes what you really want is that tag definition opened up in a
(horizontal) split window. That way you can see the definition without
losing context. This can be accomplished with `ctrl-w ]`.
As the Vim help file states:
> Use identifier under cursor as a tag and jump to it in the new upper window.
See `:h CTRL-W_]` for more details.
h/t Dorian Karter