Open shirayu opened 5 years ago
Because STDIN is not seekable.
If jvgrep
does not support these options for STDIN, how about showing a warning message and exit with some error status?
I think just ignoring them is confusing.
FYI: grep
supports this.
$ cat README.md| grep -A1 vim
`jvgrep` is grep for Japanese vimmer. You can find text from files that written in another Japanese encodings.
--
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.
--
Add following to your vimrc
You're right. I beleived that grep doesn't support A/B for input stream.
This works well.
However, -A and -B options are ignored when the input is STDIN.