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

Re: Hot to add a syntax-file for AppleScript to MacVim?

Expand Messages
  • MacVlad
    Hi, Niklas! Thanks for your reply! ... NOW I understand! :-)) ... That s right! Thanks a lot! ... Everything works, wonderful! :-) Thanks again, I have learned
    Message 1 of 9 , Dec 22, 2011
    • 0 Attachment
      Hi, Niklas!


      Thanks for your reply!

      On 21 Dez., 15:33, Niklas Lindström <lindstr...@...> wrote:
      > Hi Vlad,
      >
      > On Tue, Dec 20, 2011 at 7:05 AM, MacVlad <vlad.ghitule...@...> wrote:
      > > Hello again, Zhao Cai!
      >
      > > 1.- I don't quite understand what do you mean with ":set ft=???", it
      > > get's me an error (E474: Invalid argument: ft=???) in MacVim.
      >
      > He meant the usage pattern of setting the 'filetype' option with the
      > :set command to the desired filetype/syntax; .i.e. in your case:
      >
      >   :set ft=applescript
      >
      NOW I understand! :-))


      > There is also a shortcut command for this, :setfiletype, which also
      > supports tabcompletion. So you can do e.g.:
      >
      >   :setf applescript
      >
      > (Try typing e.g. :setf ap<Tab> to see the completion in action.)
      That's right! Thanks a lot!


      > > 2.- There is definitely NO entry for AppleScript in the synmenu.vim:
      >
      > > (...)
      > > an 50.10.260 &Syntax.AB.Apache-style\ config :cal
      > > SetSyn("apachestyle")<CR>
      > > an 50.10.270 &Syntax.AB.Applix\ ELF :cal SetSyn("elf")<CR>
      > > (...)
      >
      > You can add one manually by running:
      >
      >     :anoremenu 50.10.265 &Syntax.AB.AppleScript :cal SetSyn("applescript")<CR>
      Everything works, wonderful! :-)
      Thanks again, I have learned a lot!


      > Best regards,
      > Niklas
      > --
      > <http://neverspace.net/>
      Kind regards,
      Vlad

      --
      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.