On 2/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I have a string that has lots of forward slashes. I need to search it
and delete it (e.g. unix path name).  I could use a backslash for
everything forward slash and find it in vim. Is there a way I need not
do that? For now, I use 'grep -n' to get the line number and then delete
it. I don't actually type the string, I just use cut-and-paste!

You can use this trick:
:let @/='patterrn/with/slashes'
n

Or this trick in your vimrc:
   :command! -nargs=* S  let @/=<q-args>|norm n
and then you use
  :S  pattern/with/slashes

Yakov

Reply via email to