vi search/replace special characters

Discussion in 'Programming/Scripts' started by unclecameron, Sep 29, 2008.

  1. unclecameron

    unclecameron New Member

    I'm trying to search a file and replace all occurrences of






    and it's not working, I've also tried


    what am I doing wrong?
  2. burschik

    burschik New Member

    Works for me. Are you using some obscure version of vi (rather than vim, for example)?
  3. unclecameron

    unclecameron New Member

    I'm using vim-full with alias vi='vim' in my .bashrc
  4. unclecameron

    unclecameron New Member

    it looks like the problem is that when I say I want to escape the "<" character I have to use


    which is also the pattern match for the beginning of a word in vi, does anyone know how to get around that? I'm also looking at perl options.
  5. burschik

    burschik New Member

    I don't think escaping is necessary.

Share This Page