grep for japanese vimmer
Go Shell Makefile
mattn Merge pull request #65 from kechako/fix-panic-v-opt
Fix a panic caused by '-v' option
Latest commit e5bceb2 Aug 8, 2018
Failed to load latest commit information.
debian update Feb 7, 2014
fastwalk backport of fastwalk Apr 26, 2017
mmap Avoid panic Sep 2, 2013
.gitignore update .gitignore Mar 24, 2016
.godir Add .godir Sep 12, 2014
.pkgr.yml Add .pkgr.yml Sep 12, 2014
Makefile cleanup Makefile Jun 27, 2016 rename Apr 24, 2018 Fix build scripts May 21, 2014
jvgrep.go Fix a panic caused by '-v' option Aug 7, 2018
jvgrep_test.go Add test Mar 20, 2016 update Feb 7, 2014
wercker.yml fix wercker.yml Aug 5, 2016


jvgrep is grep for Japanese vimmer. You can find text from files that written in another Japanese encodings.


See releases


To compile jvgrep, you must install golang.

And type following

# go get

Mac OS X

# brew install jvgrep


-8               : show result as utf8 text
-F               : PATTERN is a set of newline-separated fixed strings
-G               : PATTERN is a basic regular expression (BRE)
-P               : PATTERN is a Perl regular expression (ERE)
-R               : search files recursively
-S               : verbose messages
-V               : print version information and exit
--enc encodings  : encodings: comma separated
--exclude regexp : exclude files: specify as regexp
                   (default: /\.git$|/\.svn$|/\.hg$|\.o$|\.obj$|\.a$|\.exe~?$|/tags$)
                   (specifying empty string won't exclude any files)
--no-color       : do not print colors
--color [=WHEN]  : always/never/auto
-c               : count matches
-r               : print relative path
-f file          : obtain pattern file
-i               : ignore case
-l               : print only names of FILEs containing matches
-I               : ignore binary files
-n               : print line number with output lines
-o               : show only the part of a line matching PATTERN
-v               : select non-matching lines
-z               : a data line ends in 0 byte, not newline
-Z               : print 0 byte after FILE name

Supported Encodings:

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. If you problem about output of jvgrep (ex: output of :grep command in vim), try to set $JVGREP_OUTPUT_ENCODING to specify encoding of output.

Supported Encodings

  • iso-2022-jp
  • utf-8
  • ucs-2
  • euc-jp
  • cp932
  • utf-16 (support characters in utf-8)

Vim Enhancement

Add following to your vimrc

set grepprg=jvgrep


Yasuhiro Matsumoto


under the MIT License: