How to open files starting with + (plus) using vi

Oracle names the ASM trace files with the instance name. If you try to open a file whose name starts with + (plus) ,  you cannot use quotes or  escape character.
Instead you have to use -- in order to get rid of options.
vi -- +ASM8_s001_8349.trc

6 Comments

  1. hiro says:

    Really good trick

  2. Brooke says:

    Excellent, thanks. I really needed this! (Using Vim on Mac in Terminal.app)

    1. fsengonul says:

      You’re welcome. Even though we’re dealing with so different subjects, it seems that technology unites us all 🙂

  3. SamV says:

    This was really helpful. I tried all kinds of ways including \, quotes, * etc. Nothing worked. Your suggestion worked. Thanks.

Leave a Comment