highway


Ⅰ. 插件描述

:zap: High performance source code search tool

Ⅱ. 基本信息

创建日期:  2015-09-11
使用用户:  1
Github星:  235
插件作者:  Kengo Tateishi

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'tkengo/highway'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'tkengo/highway'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'tkengo/highway'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/tkengo/highway

Ⅳ. 文档说明

# Highway

A fast pattern matching tool like pt and ag.

Features

  • It can search the PATTERN from your source code very fast.
  • It can search also the PATTERN as a regular expression.
  • It supports UTF-8 and some Japanese encodings (Because I'm Japanese :yum: EUC-JP and Shift_JIS is supported).
  • It ignores file patterns form your .gitiginore by default.

Installation

For OS X

$ brew tap tkengo/highway
$ brew install highway

For Fedora Core

$ sudo vi /etc/yum.repos.d/highway.repo
[repos.highway]
name=highway
baseurl=http://tkengo.github.io/highway/fedora
enabled=0
gpgcheck=0

$ sudo yum install highway --enablerepo="repos.highway"

Usage

# You can search PATTERN from current directory recursively.
$ hw PATTERN

# You can specify options and some paths.
$ hw OPTIONs PATTERN PATHs

# You can check options
$ hw -h

Building from source

Install building dependencies

  • gperftools
  • autoconf
  • automake

Run follow commands

$ git clone git@github.com:tkengo/highway.git
$ cd highway
$ ./tools/build.sh

And then, the binary named hw is created in highway's root directory.

License

The MIT License (MIT)

Copyright (c) 2015 Kengo Tateishi

添加新评论