Skip to content

elimisteve/jvgrep

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

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

About

grep for japanese vimmer

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%