dkprice / vim-easygrep

Fast and Easy Find and Replace Across Multiple Files
The Unlicense
325 stars 47 forks source link

fix wrong escape for '-' #41

Closed ZSaberLv0 closed 7 years ago

ZSaberLv0 commented 7 years ago

bugfix for this: https://github.com/dkprice/vim-easygrep/pull/29#discussion-diff-77451234R1976

this require escape:

:Grep - 1

however these should not be escaped:

:Grep n - 1
:Grep xxx[a-z]
dkprice commented 7 years ago

Hi, I'm going to merge this for now but I think that EasyGrepDisableCmdParam should be removed. The standard way to suppress command line parsing is to use '--' on the command line; this is something that EasyGrep already supports. It may be the case though that the tokenization is not working correctly given this. I would take a look if setting EasyGrepDisableCmdParam to zero but using '--' supports what you want. If so, we can remove the argument.