1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-04 15:48:01 +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

@@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really
warrant a full blog post. These are mostly things I learn by pairing with
smart people at [Hashrocket](http://hashrocket.com/).
_357 TILs and counting..._
_358 TILs and counting..._
---
@@ -393,6 +393,7 @@ _357 TILs and counting..._
- [Navigating By Blank Lines](vim/navigating-by-blank-lines.md)
- [NETRW Listing Styles](vim/netrw-listing-styles.md)
- [Next Modified Buffer](vim/next-modified-buffer.md)
- [Open A Tag In A Split Window](vim/open-a-tag-in-a-split-window.md)
- [Open an Unnamed Buffer](vim/open-an-unnamed-buffer.md)
- [Open Routes File With vim-rails](vim/open-routes-file-with-vim-rails.md)
- [Opening a URL](vim/opening-a-url.md)

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