Loading ...
Sorry, an error occurred while loading the content.

Re: vim command line esc-key

Expand Messages
  • ZyX
    Reply to message «vim command line esc-key», sent 12:03:01 29 July 2011, Friday by zak: You can use vim own interpretation of double quotes: vim -c execute
    Message 1 of 2 , Jul 29, 2011
    • 0 Attachment
      Reply to message «vim command line esc-key»,
      sent 12:03:01 29 July 2011, Friday
      by zak:

      You can use vim own interpretation of double quotes:

      vim -c "execute \"normal! qeiHello World!\eq10@e:q!\n\""

      I tested this in cmd provided with wine and it seem to work. I suggest you to
      switch to normal terminal though.

      Original message:
      > Hi,
      >
      > is something like
      >
      > >vim -c "normal qeiHello World!<Esc>q10@e:q!<cr>"
      >
      > possible under Win XP in the MS-DOS cmd?
      >
      > <Esc> is my problem.
      >
      > I have a german keyboard.
      >
      > Strg++ produces ^] in cmd (a synonym for <Esc>??) but just produces
      > "^]" in the editor window.
      >
      > Thanks!
    Your message has been successfully submitted and would be delivered to recipients shortly.