<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Improving mvim for MacVim</title>
	<atom:link href="http://langui.sh/2009/10/01/improving-mvim-for-macvim/feed/" rel="self" type="application/rss+xml" />
	<link>http://langui.sh/2009/10/01/improving-mvim-for-macvim/</link>
	<description>Fun hacks, WP plugins, photography, and PKI junk.  Languishing since 2008.</description>
	<lastBuildDate>Tue, 01 May 2012 19:02:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>	<item>
		<title>By: andy</title>
		<link>http://langui.sh/2009/10/01/improving-mvim-for-macvim/comment-page-1/#comment-10111</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Fri, 23 Mar 2012 02:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://langui.sh/?p=671#comment-10111</guid>
		<description>Is there any reason you wouldn&#039;t want to just do an: alias mvim=&quot;open -a MacVim&quot; in your .profile?
Just tried it out and it works great for me!</description>
		<content:encoded><![CDATA[<p>Is there any reason you wouldn&#8217;t want to just do an: alias mvim=&#8221;open -a MacVim&#8221; in your .profile?<br />
Just tried it out and it works great for me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas</title>
		<link>http://langui.sh/2009/10/01/improving-mvim-for-macvim/comment-page-1/#comment-7843</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Sat, 22 Oct 2011 11:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://langui.sh/?p=671#comment-7843</guid>
		<description>Hey,

not sure this would be the right place to ask but it seems like you have a better understanding of this script than I do..

Whenever invoking MacVim thru the terminal via the mvim command, I get a errors detected while processing menu.vim. MacVim starts but i have to press enter a couple of times to clear the errors and be able to use the terminal again.. Would you have any idea how to stop these ? 

Thanks,

Nicolas</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>not sure this would be the right place to ask but it seems like you have a better understanding of this script than I do..</p>
<p>Whenever invoking MacVim thru the terminal via the mvim command, I get a errors detected while processing menu.vim. MacVim starts but i have to press enter a couple of times to clear the errors and be able to use the terminal again.. Would you have any idea how to stop these ? </p>
<p>Thanks,</p>
<p>Nicolas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim Holburn</title>
		<link>http://langui.sh/2009/10/01/improving-mvim-for-macvim/comment-page-1/#comment-7681</link>
		<dc:creator>Kim Holburn</dc:creator>
		<pubDate>Sat, 24 Sep 2011 02:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://langui.sh/?p=671#comment-7681</guid>
		<description>Here&#039;s my version of that first loop that is more complete.  I don&#039;t know if all the strange bash characters will work.  You can always use open -a MacVim .

&lt;pre&gt;
if [ -z &quot;$VIM_APP_DIR&quot; ]; then
  myDir=&quot;`dirname &quot;$0&quot;`&quot;
  declare -a apps=(&quot;/Applications&quot; &quot;$HOME/Applications&quot; &quot;$myDir/../Applications&quot;)
  utils=&quot;Utilities&quot;
  declare -a vims=(&quot;MacVim&quot; &quot;vim&quot;)
  declare -a all=( &quot;${apps[@]}&quot; &quot;${apps[@]/%//$utils}&quot; )
  declare -a more
  for i in &quot;${vims[@]}&quot;; do
    more=( &quot;${more[@]}&quot; &quot;${all[@]/%//$i}&quot; )
  done
  for i in &quot;${all[@]}&quot; &quot;${more[@]}&quot;; do
    if [ -x &quot;$i/MacVim.app&quot; ]; then
      VIM_APP_DIR=&quot;$i&quot;
      break
    fi
  done
fi
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s my version of that first loop that is more complete.  I don&#8217;t know if all the strange bash characters will work.  You can always use open -a MacVim .</p>
<pre>
if [ -z "$VIM_APP_DIR" ]; then
  myDir="`dirname "$0"`"
  declare -a apps=("/Applications" "$HOME/Applications" "$myDir/../Applications")
  utils="Utilities"
  declare -a vims=("MacVim" "vim")
  declare -a all=( "${apps[@]}" "${apps[@]/%//$utils}" )
  declare -a more
  for i in "${vims[@]}"; do
    more=( "${more[@]}" "${all[@]/%//$i}" )
  done
  for i in "${all[@]}" "${more[@]}"; do
    if [ -x "$i/MacVim.app" ]; then
      VIM_APP_DIR="$i"
      break
    fi
  done
fi
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://langui.sh/2009/10/01/improving-mvim-for-macvim/comment-page-1/#comment-6840</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Fri, 06 May 2011 12:48:42 +0000</pubDate>
		<guid isPermaLink="false">http://langui.sh/?p=671#comment-6840</guid>
		<description>Thank you for this script.

I&#039;m not sure if this is bad practice, but I wanted to silence the output for the mvim script, so I appended 2&gt; /dev/null to all the exec statements.

For example:

exec &quot;$binary&quot; -g $opts ${1:+&quot;$@&quot;} 2&gt; /dev/null

Not sure if it works in all circumstances (though I don&#039;t see why not) .. but it&#039;s enough for my uses.</description>
		<content:encoded><![CDATA[<p>Thank you for this script.</p>
<p>I&#8217;m not sure if this is bad practice, but I wanted to silence the output for the mvim script, so I appended 2&gt; /dev/null to all the exec statements.</p>
<p>For example:</p>
<p>exec &#8220;$binary&#8221; -g $opts ${1:+&#8221;$@&#8221;} 2&gt; /dev/null</p>
<p>Not sure if it works in all circumstances (though I don&#8217;t see why not) .. but it&#8217;s enough for my uses.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching 2/7 queries in 0.004 seconds using memcached
Object Caching 365/365 objects using memcached

Served from: langui.sh @ 2012-05-17 08:50:03 -->
