I want to write a function myFunc such that:
myFunc /function foo/
becomes
:vimgrep /function foo/ **/*.cpp **/*.hpp
and
myFunc /class bar: public/
becomes
vimgrep /class bar: public/ **/*.cpp **/*.hpp
how do I do this?
Thanks!
:command -nargs=1 MyFunc vimgrep <args> **/*.cpp **/*.hpp
:MyFunc /Hello world/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With