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

Re: the -c argument

Expand Messages
  • björn
    ... Never call the MacVim binary directly! The correct way to start MacVim is using the -g flag to Vim as Benjamin points out. Read up on :h macvim-start .
    Message 1 of 3 , Jul 18, 2010
    • 0 Attachment
      On 18 July 2010 05:46, Benjamin Esham wrote:
      > Elben Shira wrote:
      >
      >> Hi, I want to write a script that opens up macvim and automatically runs a
      >> command. In vim, I run this:
      >>
      >> $ /Applications/MacVim.app/Contents/MacOS/Vim -c ":setfiletype clojure"
      >>
      >> Then, I run ":set filetype" and see that "filetype=clojure". So this
      >> works.
      >>
      >> But with macvim:
      >>
      >> $ /Applications/MacVim.app/Contents/MacOS/MacVim -c ":setfiletype clojure"
      >>
      >> I run ":set filetype" and see "filetype=", meaning it didn't work.
      >>
      >> Any ideas?
      >
      > Hi Elben,
      >
      > I'm not actually sure of the distinction between running .../Vim and
      > .../MacVim, but if you invoke .../Vim with the -g flag, e.g.
      >
      >  $ /Applications/MacVim.app/Contents/MacOS/Vim -gc "se ft=clojure"
      >
      > you get the desired behavior (i.e. a GUI and the correct filetype).

      Never call the MacVim binary directly! The correct way to start
      MacVim is using the -g flag to Vim as Benjamin points out. Read up on
      ":h macvim-start".

      Björn

      --
      You received this message from the "vim_mac" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.