#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0

    Pass the escape code to vi


    I'm trying to append two files (file1 and file2) to the file j using vi then add the END string at the end of the file, save and exit, but I don't know how to pass the ESCAPE code ^[, in the file m, any suggestion(s).

    vi j < m

    where m is:
    ===================
    G
    :r file1
    kk
    :r file2
    GoEND<ESC>
    :wq
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2007
    Posts
    168
    Rep Power
    7
    To type an escape char enter
    <crtl-v><esc>
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0
    Thank you!

IMN logo majestic logo threadwatch logo seochat tools logo