jvgrep
is grep for japanese vimmer. you can find text from files that writen in another japanese encodings.
To compile jvgrep, you must install golang.
And type following
# goinstall github.com/mattn/jvgrep
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.
- 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)
Add following to your vimrc
set grepprg=jvgrep