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

Applescript tip

Expand Messages
  • Nico Weber
    Hi all, if you ve set up XCode to use vim as your code editor, you might want to add setl makeprg=osascript -e tell application XCode to build
    Message 1 of 1 , Dec 16, 2007
      Hi all,

      if you've set up XCode to use vim as your code editor, you might want
      to add

      setl makeprg=osascript\ -e\ 'tell\ application\ \"XCode\"\ to\ build
      \transcript\ YES'
      map <D-r> :!osascript -e 'tell application "XCode" to launch'<cr>

      to some autocommand (for example, run it when editing objc files).
      Then you can use Cmd-b in vim to build (and use vim's `:cw`, `:cn` etc
      to navigate your compile errors) and Cmd-r to run your app. XCode
      still needs to be running, though.

      Nico

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.