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:
@@ -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)
|
||||
|
||||
15
vim/open-a-tag-in-a-split-window.md
Normal file
15
vim/open-a-tag-in-a-split-window.md
Normal 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
|
||||
Reference in New Issue
Block a user