3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rake routesの結果をunite.vimで見る

3
Posted at

Railsでルーティング確認するにはrails.vimを使っていると:Rake routesするとすぐ確認できて便利。
だけど、Quickfixじゃなくてuntie.vimで見たいなーと思ったので、unite outputにrake routesの結果を流し込んでみた。

nnoremap [unite] :<C-u>Unite<Space>
nmap f [unite]

nnoremap [unite]r :Rc<C-u>Unite output:!bin/rake\ routes -start-insert<CR>

uniteにfを当てているので、frで起動。
ざざっと絞り込めて便利。

unite.vimのアクションを設定して

  • Prefixのyank
  • Controller#Actionのopen
    とかやるともっと便利かも。
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?