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

13630Improvement to the mvim script

Expand Messages
  • William Douglas
    Mar 27, 2013
    • 0 Attachment
      Changed the mvim script so it finds MacVim.app regardless of where it is located.

      If MacVim is not found in the predefined search path, query the OS for the location. The changes are minimal - just add the following at line #26 of "mvim".

      xmlstr="`osascript -e "return POSIX path of (path to application \\"MacVim\\")"`"
      VIM_APP_DIR="`echo ${xmlstr:0:${#xmlstr}-12}`"

      Uses AppleScript to query for the location of MacVim. Then trims some characters from the result so it can still be used with the rest of the script. The AppleScript is only run if required - to keep things fast.

      William

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

      ---
      You received this message because you are subscribed to the Google Groups "vim_mac" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_mac+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 3 messages in this topic