LoginSignup
0
1

More than 5 years have passed since last update.

MacVimにhw (highway)を導入 macports版

Posted at

前置き

今までUnite grepには、ag (The Silver Searcher)がよく使われてきたけど、
ちょいちょい引っかかるのが気になってたので、agよりさらに軽いらしいhw (highway)を導入してみる。
highway という高速検索ツールを作りました · けんごのお屋敷

hw (highway)のビルド

作者のサイトにはHomeBrewでの導入方法があったけど、
MacPortsでの導入方法がなかったのでここに記載。

MacPortsにContributeしてみようか。。。

automake, autoconfインストール

入ってなければ適宜

$ sudo port install automake autoconf

hwビルド、インストール

ここからLatest releaseをダウンロードして解凍
https://github.com/tkengo/highway/releases

$ tools/build.sh
$ sudo cp hw /usr/local/bin/

configureが無いのが流行りか?

.vimrcに追記

" hw (highway) for Unite grep
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

ちなみに私はコマンド派なので、Unite grep起動は下のように設定して「:Ug」って打ちます。

command Ug Unite grep -buffer-name=search -no-quit
0
1
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
0
1