Hi, Very often, I need to search /a/b/c/d/e/f or a.b.c.e.f pattern reported from synopsys primetime tool.
vim treats / and . as special metametacharacters there for I have to search use back slash /\/a\/b\/c.... or a\..b\.c... Above is very painful because I can not just highlight /a/b/c/d/e/f then stuff in //a/b/c/d/e/f to search. And the /a/b/c........ path can be very long. 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 ? The substitute in vim looks like has this ability, for example: :1,$s/\//;/g ==> search use / so need to use \ to escape / :1,$s#/#;#g ==> search use # so it did not treat / as metacaracters My co-worker is using emacs and it does not require \ to escape / or . Thanks for help. Andy --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
