In what way I can make sort of a shortcut to parametrized search in vim? So when I invoke (for example) :customsearch foo, I get a search for /bar foo baz$. Or more generally /bar %s baz.
Add a command to the vimrc file such as this:
Note that the command must start with a capital letter.
command -nargs=1 Customsearch :
\ /foo <args> baz
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