diff --git a/README.md b/README.md index 07219af..57d4d39 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/vim/open-a-tag-in-a-split-window.md b/vim/open-a-tag-in-a-split-window.md new file mode 100644 index 0000000..804817e --- /dev/null +++ b/vim/open-a-tag-in-a-split-window.md @@ -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