Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
grep for japanese vimmer
Go Shell Makefile

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Makefile
README.mkd
jvgrep.go

README.mkd

jvgrep

jvgrep is grep for japanese vimmer. you can find text from files that writen in another japanese encodings.

Install

To compile jvgrep, you must install golang.

http://golang.org/

And type following

# goinstall github.com/mattn/jvgrep

Usage

Usage: jvgrep [options] [pattern] [file...]
  Version 0.6
  -F=false: fixed match
  -R=false: recursive
  -S=false: verbose
  -V=false: version
  -enc="": encodings: comma separated
  -exclude="": exclude files: specify as regexp
  -f="": obtain pattern file
  -i=false: ignore case(currently fixed only)
  -l=false: listing files
  -v=false: invert match

  Supported Encodings:
    iso-2022-jp-3
    iso-2022-jp
    euc-jisx0213
    euc-jp
    utf-8
    euc-jp
    eucjp-ms
    cp932
    utf-16be
    utf-16le

for example,

# jvgrep 表[現示] "**/*.txt"

pattern should be specify with regexp. file can be specify wildcard. You can specify pattern with regular expression include multi-byte characters.. If you want to use own encodings for jvgrep, try to set environment variable $JVGREP_ENCODINGS to specify encodings separated with comma.

Supported Encodings

  • iso-2022-jp-3
  • iso-2022-jp
  • euc-jisx0213
  • euc-jp
  • utf-8
  • ucs-2
  • euc-jp
  • eucjp-ms
  • cp932
  • utf-16be (support characters in utf-8)
  • utf-16le (support characters in utf-8)

Vim Enhancement

Add following to your vimrc

set grepprg=jvgrep
Something went wrong with that request. Please try again.