Tuesday, January 20, 2015

Re: Should vimgrep always use "/" to enclose your search patterns?

Thanks for this!

On Tue, Jan 20, 2015 at 2:01 PM, Erik Falor <ewfalor@gmail.com> wrote:
On Tue, Jan 20, 2015 at 01:33:46PM -0800, Bao Niu wrote:
> Thank you John, but your advice makes me nervous. Does this dot ('.') rule
> also apply to vimgrep? Or it's only for substitution?
> This must be something that only pros use?

Don't let it intimidate you!  It's quite simple, really.

In fact, using a character other than the '/' to delimit the search
and replace parameters to the substitute command is not something
unique to Vim.  Perl and sed follow this convention as well.

For instance:

http://www.grymoire.com/Unix/Sed.html#uh-2

--
Erik Falor
Registered Linux User #445632                  http://linuxcounter.net

--
--
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