Skip to content

Instantly share code, notes, and snippets.

@chew-z
Created May 29, 2017 12:51
Show Gist options
  • Save chew-z/fbf073fafa06aee14ec6b9505cd0ae0f to your computer and use it in GitHub Desktop.
Save chew-z/fbf073fafa06aee14ec6b9505cd0ae0f to your computer and use it in GitHub Desktop.
Launcher for MacVim. Shell script, Applescript and Info.plist - enough to make a full app
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>16E195</string>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>VIM</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>vim</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-vim</string>
<key>CFBundleTypeName</key>
<string>Vim Script File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>txt</string>
<string>text</string>
<string>utf8</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-txt</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>text/plain</string>
</array>
<key>CFBundleTypeName</key>
<string>Plain Text File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>tex</string>
<string>sty</string>
<string>cls</string>
<string>ltx</string>
<string>ins</string>
<string>dtx</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-tex</string>
<key>CFBundleTypeName</key>
<string>TeX File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>h</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-h</string>
<key>CFBundleTypeName</key>
<string>C Header Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.c-header</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>pch</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-h</string>
<key>CFBundleTypeName</key>
<string>C Precompiled Header Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.precompiled-c-header</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>hh</string>
<string>hp</string>
<string>hpp</string>
<string>hxx</string>
<string>h++</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-h</string>
<key>CFBundleTypeName</key>
<string>C++ Header Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>pch++</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-h</string>
<key>CFBundleTypeName</key>
<string>C++ Precompiled Header Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.precompiled-c-plus-plus-header</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>c</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-c</string>
<key>CFBundleTypeName</key>
<string>C Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.c-source</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>m</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-m</string>
<key>CFBundleTypeName</key>
<string>Objective-C Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.objective-c-source</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>mm</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-mm</string>
<key>CFBundleTypeName</key>
<string>Objective-C++ Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.objective-c-plus-plus-source</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>cc</string>
<string>cp</string>
<string>cpp</string>
<string>cxx</string>
<string>c++</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-cpp</string>
<key>CFBundleTypeName</key>
<string>C++ Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.c-plus-plus-source</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>s</string>
<string>asm</string>
</array>
<key>CFBundleTypeName</key>
<string>Assembly Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.assembler-source</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>r</string>
</array>
<key>CFBundleTypeName</key>
<string>Rez Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.rez-source</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>java</string>
<string>jav</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-java</string>
<key>CFBundleTypeName</key>
<string>Java Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>com.sun.java-source</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>l</string>
<string>lm</string>
<string>lmm</string>
<string>lpp</string>
<string>lxx</string>
</array>
<key>CFBundleTypeName</key>
<string>Lex Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.lex-source</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>y</string>
<string>ym</string>
<string>ymm</string>
<string>ypp</string>
<string>yxx</string>
</array>
<key>CFBundleTypeName</key>
<string>Yacc Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.yacc-source</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>defs</string>
</array>
<key>CFBundleTypeName</key>
<string>Mig Definition File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>exp</string>
</array>
<key>CFBundleTypeName</key>
<string>Symbol Export File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.symbol-export</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>f</string>
<string>for</string>
<string>fpp</string>
<string>f77</string>
<string>f90</string>
<string>f95</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-f</string>
<key>CFBundleTypeName</key>
<string>Fortran Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<false/>
<key>LSItemContentTypes</key>
<array>
<string>public.fortran-source</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>pas</string>
</array>
<key>CFBundleTypeName</key>
<string>Pascal Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<false/>
<key>LSItemContentTypes</key>
<array>
<string>public.pascal-source</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>ada</string>
<string>adb</string>
<string>ads</string>
</array>
<key>CFBundleTypeName</key>
<string>Ada Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<false/>
<key>LSItemContentTypes</key>
<array>
<string>public.ada-source</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>html</string>
<string>phtml</string>
<string>shtml</string>
<string>xhtml</string>
<string>htm</string>
<string>pht</string>
<string>sht</string>
<string>xht</string>
<string>phtm</string>
<string>shtm</string>
<string>xhtm</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-html</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>text/html</string>
</array>
<key>CFBundleTypeName</key>
<string>HTML Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.html</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>xml</string>
<string>rss</string>
<string>tld</string>
<string>pt</string>
<string>cpt</string>
<string>dtml</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-xml</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>text/xml</string>
</array>
<key>CFBundleTypeName</key>
<string>XML Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>public.xml</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>js</string>
<string>htc</string>
<string>jscript</string>
<string>javascript</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-js</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>text/javascript</string>
</array>
<key>CFBundleTypeName</key>
<string>JavaScript Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>com.netscape.javascript-source</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>pl</string>
<string>pm</string>
<string>pod</string>
<string>perl</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-perl</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>text/x-perl-script</string>
</array>
<key>CFBundleTypeName</key>
<string>Perl Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>public.perl-script</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>py</string>
<string>rpy</string>
<string>cpy</string>
<string>python</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-py</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>text/x-python-script</string>
</array>
<key>CFBundleTypeName</key>
<string>Python Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>public.python-script</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>php</string>
<string>php3</string>
<string>php4</string>
<string>php5</string>
<string>ph3</string>
<string>ph4</string>
<string>phtml</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-php</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>text/php</string>
</array>
<key>CFBundleTypeName</key>
<string>PHP Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>public.php-script</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>rb</string>
<string>rbw</string>
<string>rbx</string>
<string>rjs</string>
<string>rxml</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-rb</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>text/ruby-script</string>
</array>
<key>CFBundleTypeName</key>
<string>Ruby Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>public.ruby-script</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>sh</string>
<string>csh</string>
<string>command</string>
<string>ss</string>
<string>bashrc</string>
<string>bash_profile</string>
<string>bash_login</string>
<string>profile</string>
<string>bash_logout</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-bash</string>
<key>CFBundleTypeName</key>
<string>Shell script</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>public.shell-script</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>class</string>
</array>
<key>CFBundleTypeName</key>
<string>Java Class File</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSIsAppleDefaultForType</key>
<false/>
<key>LSItemContentTypes</key>
<array>
<string>com.sun.java-class</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>patch</string>
<string>diff</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-patch</string>
<key>CFBundleTypeName</key>
<string>Patch File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>strings</string>
</array>
<key>CFBundleTypeName</key>
<string>Strings File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>public.strings-text</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>*</string>
</array>
<key>CFBundleTypeName</key>
<string>Text File</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>applescript</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-applescript</string>
<key>CFBundleTypeName</key>
<string>AppleScript Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>com.apple.applescript.text</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>as</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-as</string>
<key>CFBundleTypeName</key>
<string>ActionScript Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>asp</string>
<string>asa</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-asp</string>
<key>CFBundleTypeName</key>
<string>ASP document</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>aspx</string>
<string>ascx</string>
<string>asmx</string>
<string>ashx</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-asp</string>
<key>CFBundleTypeName</key>
<string>ASP.NET document</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>bib</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-bib</string>
<key>CFBundleTypeName</key>
<string>BibTeX bibliography</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>cs</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-cs</string>
<key>CFBundleTypeName</key>
<string>C# Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>cfdg</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-csfg</string>
<key>CFBundleTypeName</key>
<string>Context Free Design Grammar</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>csv</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-csv</string>
<key>CFBundleTypeName</key>
<string>Comma separated values</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>tsv</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-tsv</string>
<key>CFBundleTypeName</key>
<string>Tab separated values</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>cgi</string>
<string>fcgi</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-cgi</string>
<key>CFBundleTypeName</key>
<string>CGI script</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>cfg</string>
<string>conf</string>
<string>config</string>
<string>htaccess</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-cfg</string>
<key>CFBundleTypeName</key>
<string>Configuration file</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>css</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-css</string>
<key>CFBundleTypeName</key>
<string>Cascading style sheet</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>dtd</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-dtd</string>
<key>CFBundleTypeName</key>
<string>Document Type Definition</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>dylan</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-dylan</string>
<key>CFBundleTypeName</key>
<string>Dylan Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>erl</string>
<string>hrl</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-erl</string>
<key>CFBundleTypeName</key>
<string>Erlang Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>fscript</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-fscript</string>
<key>CFBundleTypeName</key>
<string>F-Script Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>hs</string>
<string>lhs</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-hs</string>
<key>CFBundleTypeName</key>
<string>Haskell Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>inc</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-inc</string>
<key>CFBundleTypeName</key>
<string>Include file</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>ics</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-ics</string>
<key>CFBundleTypeName</key>
<string>iCalendar schedule</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>ini</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-ini</string>
<key>CFBundleTypeName</key>
<string>MS Windows initialization file</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>io</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-io</string>
<key>CFBundleTypeName</key>
<string>Io Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>bsh</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-bsh</string>
<key>CFBundleTypeName</key>
<string>BeanShell script</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>properties</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-properties</string>
<key>CFBundleTypeName</key>
<string>Java properties file</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>jsp</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-jsp</string>
<key>CFBundleTypeName</key>
<string>Java Server Page</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>lisp</string>
<string>cl</string>
<string>l</string>
<string>lsp</string>
<string>mud</string>
<string>el</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-lisp</string>
<key>CFBundleTypeName</key>
<string>LISP Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>log</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-log</string>
<key>CFBundleTypeName</key>
<string>Log file</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>wiki</string>
<string>wikipedia</string>
<string>mediawiki</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-wiki</string>
<key>CFBundleTypeName</key>
<string>Mediawiki document</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>ps</string>
<string>eps</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-ps</string>
<key>CFBundleTypeName</key>
<string>PostScript Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>scm</string>
<string>sch</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-sch</string>
<key>CFBundleTypeName</key>
<string>Scheme Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>sql</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-sql</string>
<key>CFBundleTypeName</key>
<string>SQL Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>tcl</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-tcl</string>
<key>CFBundleTypeName</key>
<string>Tcl Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>xsl</string>
<string>xslt</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-xsl</string>
<key>CFBundleTypeName</key>
<string>XSL stylesheet</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>vcf</string>
<string>vcard</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-vcf</string>
<key>CFBundleTypeName</key>
<string>Electronic business card</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>vb</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-vb</string>
<key>CFBundleTypeName</key>
<string>Visual Basic Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>yaml</string>
<string>yml</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-yaml</string>
<key>CFBundleTypeName</key>
<string>YAML document</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>gtd</string>
<string>gtdlog</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-gtd</string>
<key>CFBundleTypeName</key>
<string>GTD document</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>markdown</string>
<string>markd</string>
<string>mdown</string>
<string>md</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-markdown</string>
<key>CFBundleTypeName</key>
<string>Markdown document</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>rst</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-rst</string>
<key>CFBundleTypeName</key>
<string>reStructuredText document</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>vba</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-vba</string>
<key>CFBundleTypeName</key>
<string>Vimball Archive</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>vhd</string>
<string>vhdl</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-generic</string>
<key>CFBundleTypeName</key>
<string>VHDL Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>lua</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-generic</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>text/x-lua-script</string>
</array>
<key>CFBundleTypeName</key>
<string>Lua Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>v</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-generic</string>
<key>CFBundleTypeName</key>
<string>Verilog HDL Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>vh</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>MacVim-generic</string>
<key>CFBundleTypeName</key>
<string>Verilog HDL Header Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>droplet</string>
<key>CFBundleIconFile</key>
<string>droplet</string>
<key>CFBundleIdentifier</key>
<string>com.apple.ScriptEditor.id.MacVim</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>MacVim_</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>dplt</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>org.vim.MacVim</string>
<key>CFBundleURLSchemes</key>
<array>
<string>mvim</string>
</array>
</dict>
</array>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>8E2002</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>16E185</string>
<key>DTSDKName</key>
<string>macosx10.12</string>
<key>DTXcode</key>
<string>0832</string>
<key>DTXcodeBuild</key>
<string>8E2002</string>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
<string>10.6</string>
</dict>
<key>LSRequiresCarbon</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSAppleScriptEnabled</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2016, chew-z, Free as in 'free coffee'</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>MMApplication</string>
<key>NSServices</key>
<array>
<dict>
<key>NSMenuItem</key>
<dict>
<key>default</key>
<string>MacVim/New MacVim Buffer With Selection</string>
</dict>
<key>NSMessage</key>
<string>openSelection</string>
<key>NSPortName</key>
<string>MacVim</string>
<key>NSRequiredContext</key>
<dict/>
<key>NSSendTypes</key>
<array>
<string>NSStringPboardType</string>
</array>
</dict>
<dict>
<key>NSMenuItem</key>
<dict>
<key>default</key>
<string>MacVim/New MacVim Buffer Here</string>
</dict>
<key>NSMessage</key>
<string>newFileHere</string>
<key>NSPortName</key>
<string>MacVim</string>
<key>NSRequiredContext</key>
<dict/>
<key>NSSendTypes</key>
<array>
<string>NSFilenamesPboardType</string>
</array>
<key>NSUserData</key>
<string>Window</string>
</dict>
</array>
<key>SUFeedURL</key>
<string>https://raw.githubusercontent.com/macvim-dev/macvim/gh-pages/appcast/latest.xml</string>
<key>SUPublicDSAKeyFile</key>
<string>dsa_pub.pem</string>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Vim Script File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.vim-script</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>vim</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Plain Text File</string>
<key>UTTypeIdentifier</key>
<string>public.plain-text</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>txt</string>
<string>text</string>
<string>utf8</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>TeX File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.tex-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>tex</string>
<string>sty</string>
<string>cls</string>
<string>ltx</string>
<string>ins</string>
<string>dtx</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>C Header Source File</string>
<key>UTTypeIdentifier</key>
<string>public.c-header</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>h</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>C Precompiled Header Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.pch-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>pch</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>C++ Header Source File</string>
<key>UTTypeIdentifier</key>
<string>public.c-plus-plus-header</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>hh</string>
<string>hp</string>
<string>hpp</string>
<string>hxx</string>
<string>h++</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>C++ Precompiled Header Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.pch++-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>pch++</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>C Source File</string>
<key>UTTypeIdentifier</key>
<string>public.c-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>c</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Objective-C Source File</string>
<key>UTTypeIdentifier</key>
<string>public.objective-c-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>m</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Objective-C++ Source File</string>
<key>UTTypeIdentifier</key>
<string>public.objective-c-plus-plus-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>mm</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>C++ Source File</string>
<key>UTTypeIdentifier</key>
<string>public.c-plus-plus-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>cc</string>
<string>cp</string>
<string>cpp</string>
<string>cxx</string>
<string>c++</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Assembly Source File</string>
<key>UTTypeIdentifier</key>
<string>public.assembly-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>s</string>
<string>asm</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Rez Source File</string>
<key>UTTypeIdentifier</key>
<string>com.apple.rez-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>r</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Java Source File</string>
<key>UTTypeIdentifier</key>
<string>com.sun.java-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>java</string>
<string>jav</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Lex Source File</string>
<key>UTTypeIdentifier</key>
<string>com.apple.xcode.lex-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>l</string>
<string>lm</string>
<string>lmm</string>
<string>lpp</string>
<string>lxx</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Yacc Source File</string>
<key>UTTypeIdentifier</key>
<string>com.apple.xcode.yacc-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>y</string>
<string>ym</string>
<string>ymm</string>
<string>ypp</string>
<string>yxx</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Mig Definition File</string>
<key>UTTypeIdentifier</key>
<string>public.mig-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>defs</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Symbol Export File</string>
<key>UTTypeIdentifier</key>
<string>com.apple.symbol-export</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>exp</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Fortran Source File</string>
<key>UTTypeIdentifier</key>
<string>com.apple.xcode.fortran-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>f</string>
<string>for</string>
<string>fpp</string>
<string>f77</string>
<string>f90</string>
<string>f95</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Pascal Source file</string>
<key>UTTypeIdentifier</key>
<string>com.apple.xcode.pascal-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>pas</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Ada Source File</string>
<key>UTTypeIdentifier</key>
<string>com.apple.xcode.ada-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>ada</string>
<string>adb</string>
<string>ads</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>HTML Source File</string>
<key>UTTypeIdentifier</key>
<string>public.html</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>html</string>
<string>phtml</string>
<string>shtml</string>
<string>xhtml</string>
<string>htm</string>
<string>pht</string>
<string>sht</string>
<string>xht</string>
<string>phtm</string>
<string>shtm</string>
<string>xhtm</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>XML Source File</string>
<key>UTTypeIdentifier</key>
<string>public.xml</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>xml</string>
<string>rss</string>
<string>tld</string>
<string>pt</string>
<string>cpt</string>
<string>dtml</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>JavaScript Source File</string>
<key>UTTypeIdentifier</key>
<string>com.netscape.javascript-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>js</string>
<string>htc</string>
<string>jscript</string>
<string>javascript</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Perl Source File</string>
<key>UTTypeIdentifier</key>
<string>public.perl-script</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>pl</string>
<string>pm</string>
<string>pod</string>
<string>perl</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Python Source File</string>
<key>UTTypeIdentifier</key>
<string>public.python-script</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>py</string>
<string>rpy</string>
<string>cpy</string>
<string>python</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>PHP Source File</string>
<key>UTTypeIdentifier</key>
<string>public.php-script</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>php</string>
<string>php3</string>
<string>php4</string>
<string>php5</string>
<string>ph3</string>
<string>ph4</string>
<string>phtml</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Ruby Source File</string>
<key>UTTypeIdentifier</key>
<string>public.ruby-script</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>rb</string>
<string>rbw</string>
<string>rbx</string>
<string>rjs</string>
<string>rxml</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Shell script</string>
<key>UTTypeIdentifier</key>
<string>public.shell-script</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>sh</string>
<string>csh</string>
<string>command</string>
<string>ss</string>
<string>bashrc</string>
<string>bash_profile</string>
<string>bash_login</string>
<string>profile</string>
<string>bash_logout</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Java Class File</string>
<key>UTTypeIdentifier</key>
<string>com.sun.java-class</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>class</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Patch File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.patch-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>patch</string>
<string>diff</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Strings File</string>
<key>UTTypeIdentifier</key>
<string>com.apple.xcode.strings-text</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>strings</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>AppleScript Source File</string>
<key>UTTypeIdentifier</key>
<string>com.apple.applescript.text</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>applescript</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>ActionScript Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.as-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>as</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>ASP document</string>
<key>UTTypeIdentifier</key>
<string>org.vim.asp-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>asp</string>
<string>asa</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>ASP.NET document</string>
<key>UTTypeIdentifier</key>
<string>org.vim.aspx-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>aspx</string>
<string>ascx</string>
<string>asmx</string>
<string>ashx</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>BibTeX bibliography</string>
<key>UTTypeIdentifier</key>
<string>org.vim.bib-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>bib</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>C# Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.cs-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>cs</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Context Free Design Grammar</string>
<key>UTTypeIdentifier</key>
<string>org.vim.cfdg-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>cfdg</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Comma separated values</string>
<key>UTTypeIdentifier</key>
<string>org.vim.csv-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>csv</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Tab separated values</string>
<key>UTTypeIdentifier</key>
<string>org.vim.tsv-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>tsv</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>CGI script</string>
<key>UTTypeIdentifier</key>
<string>org.vim.cgi-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>cgi</string>
<string>fcgi</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Configuration file</string>
<key>UTTypeIdentifier</key>
<string>org.vim.cfg-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>cfg</string>
<string>conf</string>
<string>config</string>
<string>htaccess</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Cascading style sheet</string>
<key>UTTypeIdentifier</key>
<string>org.vim.css-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>css</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Document Type Definition</string>
<key>UTTypeIdentifier</key>
<string>org.vim.dtd-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>dtd</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Dylan Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.dylan-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>dylan</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Erlang Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.erl-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>erl</string>
<string>hrl</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>F-Script Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.fscript-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>fscript</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Haskell Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.hs-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>hs</string>
<string>lhs</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Include file</string>
<key>UTTypeIdentifier</key>
<string>org.vim.inc-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>inc</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>iCalendar schedule</string>
<key>UTTypeIdentifier</key>
<string>org.vim.ics-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>ics</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>MS Windows initialization file</string>
<key>UTTypeIdentifier</key>
<string>org.vim.ini-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>ini</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Io Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.io-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>io</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>BeanShell script</string>
<key>UTTypeIdentifier</key>
<string>org.vim.bsh-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>bsh</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Java properties file</string>
<key>UTTypeIdentifier</key>
<string>org.vim.properties-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>properties</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Java Server Page</string>
<key>UTTypeIdentifier</key>
<string>org.vim.jsp-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>jsp</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>LISP Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.lisp-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>lisp</string>
<string>cl</string>
<string>l</string>
<string>lsp</string>
<string>mud</string>
<string>el</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Log file</string>
<key>UTTypeIdentifier</key>
<string>org.vim.log-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>log</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Mediawiki document</string>
<key>UTTypeIdentifier</key>
<string>org.vim.wiki-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>wiki</string>
<string>wikipedia</string>
<string>mediawiki</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>PostScript Source File</string>
<key>UTTypeIdentifier</key>
<string>com.adobe.postscript</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>ps</string>
<string>eps</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Scheme Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.scm-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>scm</string>
<string>sch</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>SQL Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.sql-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>sql</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Tcl Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.tcl-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>tcl</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>XSL stylesheet</string>
<key>UTTypeIdentifier</key>
<string>org.vim.xsl-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>xsl</string>
<string>xslt</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Electronic business card</string>
<key>UTTypeIdentifier</key>
<string>public.vcard</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>vcf</string>
<string>vcard</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Visual Basic Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.vb-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>vb</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>YAML document</string>
<key>UTTypeIdentifier</key>
<string>org.vim.yaml-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>yaml</string>
<string>yml</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>GTD document</string>
<key>UTTypeIdentifier</key>
<string>org.vim.gtd-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>gtd</string>
<string>gtdlog</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Markdown document</string>
<key>UTTypeIdentifier</key>
<string>net.daringfireball.markdown</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>markdown</string>
<string>markd</string>
<string>mdown</string>
<string>md</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>reStructuredText document</string>
<key>UTTypeIdentifier</key>
<string>org.vim.rst-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>rst</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Vimball Archive</string>
<key>UTTypeIdentifier</key>
<string>org.vim.vba-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>vba</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>VHDL Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.vhdl-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>vhdl</string>
<string>vhd</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Lua Source File</string>
<key>UTTypeIdentifier</key>
<string>org.lua.lua-source</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>lua</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Verilog HDL Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.v-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>v</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.plain-text</string>
</array>
<key>UTTypeDescription</key>
<string>Verilog HDL Header Source File</string>
<key>UTTypeIdentifier</key>
<string>org.vim.vh-file</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>vh</string>
</array>
</dict>
</dict>
</array>
<key>WindowState</key>
<dict>
<key>bundleDividerCollapsed</key>
<true/>
<key>bundlePositionOfDivider</key>
<real>0.0</real>
<key>dividerCollapsed</key>
<false/>
<key>eventLogLevel</key>
<integer>1</integer>
<key>name</key>
<string>ScriptWindowState</string>
<key>positionOfDivider</key>
<real>378</real>
<key>savedFrame</key>
<string>20 363 700 672 0 0 1680 1050 </string>
<key>selectedTab</key>
<string>log</string>
</dict>
</dict>
</plist>
on run
tell application "System Events"
if not (exists (application process "MacVim")) then
-- fork mvim script, don't wait
do shell script "/usr/local/bin/mvim " & " &>/dev/null &"
end if
end tell
end run
-- /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump
property theFileTypesToProcess : {"HTML", "public.plain-text", "TEXT"}
-- For example: {"PICT", "JPEG", "TIFF", "GIFf"}
property theExtensionsToProcess : {"", "css", "csv", "htm", "html", "js", "md", "pl", "plist", "py", "sh", "txt", "text", "vim", "xml"}
-- For example: {"txt", "text", "md", "py"}, NOT: {".txt", ".text", ".jpg", ".jpeg"}
property theTypeIdentifiersToProcess : {}
-- For example: {"public.jpeg", "public.tiff", "public.png"}
on open theDroppedItems
tell application "System Events"
if not (exists (application process "MacVim")) then
-- fork mvim script, don't wait
do shell script "/usr/local/bin/mvim " & " &>/dev/null &"
delay 3
end if
end tell
repeat with a from 1 to count of theDroppedItems
set theCurrentItem to item a of theDroppedItems
tell application "System Events"
set theExtension to name extension of theCurrentItem
set theFileType to file type of theCurrentItem
set theTypeIdentifier to type identifier of theCurrentItem
end tell
if ((theFileTypesToProcess contains theFileType) or (theExtensionsToProcess contains theExtension) or (theTypeIdentifiersToProcess contains theTypeIdentifier)) then
processItem(theCurrentItem)
end if
end repeat
return
end open
on processItem(theItem)
-- NOTE: The variable theItem is a file reference in AppleScript alias format
-- item processing code here
set thePath to convertPathToPOSIXString(theItem)
-- fork mvim script, don't wait
do shell script "/usr/local/bin/mvim " & thePath & " &>/dev/null &"
end processItem
on convertPathToPOSIXString(thePath)
tell application "System Events"
try
set thePath to path of disk item (thePath as string)
on error
set thePath to path of thePath
end try
end tell
return POSIX path of thePath
end convertPathToPOSIXString
on idle
delay 5
end idle
#!/usr/bin/env zsh
#
# My humble MacVim launcher
# Don't clutter with tabs or windows.
# Just add new buffers (add files to arglist)
# 0 arguments
# - just launch
# 1 argument
# - open file if exists;
# - if not ask if create new file
# This is also used with Vim Launcher app which fires files one by one
# 2 and more arguments
# - open all files
# - execute VIM command passed with -command
#
MVIM="/Applications/MacVim.app/Contents/MacOS/Vim"
MV="-g"
function resolveFile
{
fullpath=$(realpath "$1")
# $(greadlink -f "$1") # GNU version of readlink
if [ -d "$fullpath" ]; then
exit
fi
if [ -f "$fullpath" ]; then
touch $fullpath
fi
echo $fullpath
}
function mmm()
{
# opts=$(getopt ':cgv' -n "$MVIM" "$@")
# echo "$opts"
# set -- "$opts"
local CMD=""
local FILES=""
local COUNTER=0
while :
do
# echo "$arg"
case "$1" in
'')
break;;
--command) # VIM command like G
CMD="$CMD$2"
shift 2
continue;;
-*)
echo "5: unrecognized argument $1" # pass dirty laundry to original MacVim
"$MVIM" $SAVEDARGS
exit;;
*)
local filepath=$(resolveFile $1)
if [[ -z "$filepath" ]]; then # probably a folder, pass
break
elif [ $COUNTER -eq 0 ]; then # first file (edit)
# echo "file $COUNTER $filepath"
FILES="<C-\><C-n>:argedit $filepath<CR>"
elif [ $COUNTER -gt 0 ]; then # following files add to arglist
# echo "file $COUNTER $filepath"
FILES="$FILES :argadd $filepath<CR>"
else
fi
let COUNTER=$((COUNTER+1))
shift;;
esac
done
echo "4: $MVIM $MV --remote-send $FILES$CMD"
$MVIM $MV --remote-send $FILES$CMD
}
mim () { # Simple case if no arguments supplied
# servername == window name; each is a separate process/instance
if [[ "$#" -eq 0 ]]; then
# echo "1: open -a 'MacVim'"
eval "$MVIM $MV"
# open -a 'MacVim'
elif [[ "$#" -eq 1 ]]; then # Usual case
# one argument most likely filename
if [[ "${@: -1}" == --* || "${@: -1}" == -* ]]; then # single parameter pass
# echo "2: mvim $@"
exec "$MVIM" "$@"
elif [[ ! -f "${@: -1}" ]]; then # if file not exists create
while true; do
read "yn?Create new file or is this typo again? [yN]" # This is zsh flavour of read command
case $yn in
[Yy]* ) touch "${@: -1}"; break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
fi
if [[ -f "${@: -1}" ]]; then # now file exists or existed before
fullpath=$(realpath "${@: -1}")
print -S "mvim $fullpath" # save to history [shorter version]
if [[ -z "$(command $MVIM --serverlist)" ]]; then # cannot find MacVim window
echo "$MVIM $MV $fullpath" # fire MacVim
eval "$MVIM $MV $fullpath"
else
FILE="<C-\><C-n>:argedit $fullpath<CR>" # open buffer for editing
echo "3: $MVIM $MV --remote-send $FILE"
"$MVIM" "$MV" --remote-send "$FILE"
fi
fi
fi
}
name="`basename "$0"`"
# echo "$name" "$@"
if [[ "$#" -gt 1 ]]; then # Complicated case
SAVEDARGS=("$@") # possible mix of files and arguments
# echo "$SAVEDARGS"
case "$name" in
m*|g*|rm*|rg*)
mmm "$@" ;;
* )
MV="-v"
mmm "$@" ;;
esac
else
case "$name" in
m*|g*|rm*|rg*)
mim "$@" ;;
* )
MV="-v"
mim "$@" ;;
esac
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment