LoginSignup
28
27

More than 5 years have passed since last update.

unite.vimのgrep検索にhighwayを使う

Last updated at Posted at 2015-10-19

新しく高速な検索ツールを作成していただいたということで早速試してみました!
highway という高速検索ツールを作りました
導入方法は上記記事にあるため割愛します.

以前は,この記事を参考にagを使っていました.
http://qiita.com/0829/items/7053b6e3371592e4fbe6

highwayの設定.

" grep検索
nnoremap <silent> ,g  :<C-u>Unite grep:. -buffer-name=search-buffer<CR>

" unite grepにhw(highway)を使う
if executable('hw')
  let g:unite_source_grep_command = 'hw'
  let g:unite_source_grep_default_opts = '--no-group --no-color'
  let g:unite_source_grep_recursive_opt = ''
endif

記事に書かれてる通り,agより速くていいですね(あとCPUリソース消費も少ないようです).

railsで試しにgrep検索

ag

https://gyazo.com/075217bcdad80c828ca519c25e962cc0

hw

https://gyazo.com/75e0e2bb40a40b1e6c25ff7ac7947da3

速い!

28
27
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
28
27