Vim で bash の reverse-i-search のようなことを行う

そんな話が Lingr の Vim 部屋で出ていたので。


" <C-r> で unite-history/command を起動
" 選択するとコマンドラインに選択したコマンドが挿入される
" unite.vim と vim-unite-history が必要
cnoremap <C-r> :Unite history/command -start-insert -default-action=edit<CR>

http://i.gyazo.com/4479150a33ebee0c084e509fc51572ee.png


上の設定を行ってからコマンドライン を押すと unite-history/command が起動してインクリメンタルにコマンド履歴を検索する事ができます。
地味に便利そう?
コマンドライン 上書きするとかないわー