mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Add Open The Latest Rails Migration 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
|
warrant a full blog post. These are mostly things I learn by pairing with
|
||||||
smart people at [Hashrocket](http://hashrocket.com/).
|
smart people at [Hashrocket](http://hashrocket.com/).
|
||||||
|
|
||||||
_359 TILs and counting..._
|
_360 TILs and counting..._
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -397,6 +397,7 @@ _359 TILs and counting..._
|
|||||||
- [Open A Tag In A Split Window](vim/open-a-tag-in-a-split-window.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 an Unnamed Buffer](vim/open-an-unnamed-buffer.md)
|
||||||
- [Open Routes File With vim-rails](vim/open-routes-file-with-vim-rails.md)
|
- [Open Routes File With vim-rails](vim/open-routes-file-with-vim-rails.md)
|
||||||
|
- [Open The Latest Rails Migration](vim/open-the-latest-rails-migration.md)
|
||||||
- [Opening a URL](vim/opening-a-url.md)
|
- [Opening a URL](vim/opening-a-url.md)
|
||||||
- [Opening Man Pages In Vim](vim/opening-man-pages-in-vim.md)
|
- [Opening Man Pages In Vim](vim/opening-man-pages-in-vim.md)
|
||||||
- [Paste A Register From Insert Mode](vim/paste-a-register-from-insert-mode.md)
|
- [Paste A Register From Insert Mode](vim/paste-a-register-from-insert-mode.md)
|
||||||
|
|||||||
16
vim/open-the-latest-rails-migration.md
Normal file
16
vim/open-the-latest-rails-migration.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Open The Latest Rails Migration
|
||||||
|
|
||||||
|
The [`rails.vim`](https://github.com/tpope/vim-rails) plugin comes with a
|
||||||
|
lot of handy helpers for quickly navigating to many parts of a Rails
|
||||||
|
project. Among these helpers is the `:Emigration` command that makes it easy
|
||||||
|
to tab complete and navigate to Rails migration files. Often times the
|
||||||
|
migration you want is the latest migration. There is no need for tab
|
||||||
|
complete here, just type:
|
||||||
|
|
||||||
|
```
|
||||||
|
:Emigration
|
||||||
|
```
|
||||||
|
|
||||||
|
By default this command opens the latest migration in a new buffer.
|
||||||
|
|
||||||
|
See `:h rails-:Emigration` for more details.
|
||||||
Reference in New Issue
Block a user