Tuesday, October 17, 2017

vim command args'LOGICAL interpreter

Hi,



Actually using and calling grep silver search tool from simple command :

command! -bang -nargs=+ -complete=function Search :call o.searchByContent(<q-args>)


Example :
function! foo() abort dict "bar


1. Then when I search foo ':Search foo' => OK

2. Then I would like to avoid typing regex in command args like to search lines that contains foo AND bar.

Instead of ':Search foo.+bar' Can I easily modify my command in order to type
':Search foo AND bar' or ':SearchAND foo bar'

Or do I need to implement interpreter of passed args.

Thank in advance

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment