> How can I let vim treat    metacharacters as ordinary characters?   so I can
> //a/b/c/d/e/f     to search /a/b/c/d/e/f   ?

Well, this is tricky, but for your particular case, you can do 
things like manually set the search register to a pattern:

   :let @/='/a/b/c/d/e/f'
   n

or use "?" to search backwards instead of forwards, and then 
reverse your search direction (which has about the same effect):

   ?/a/b/c/d/e/f
   N


For not-escaping-other-characters, you may also be interested in 
the "no-magic" setting and search atom:

   /\Mfile[0-9]{a-z}.txt

will search for the literal string "file[0-9]{a-z}.txt" instead 
of treating the "[", "{" and "." as metacharacters (terminal "$" 
and initial "^" are still treated as metacharacters).

   :help /\M
   :help 'magic'

However, BEWARE:  the 'magic' setting breaks a lot of scripts 
that assume it's not set.

-tim




--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to