<?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: Live Word Count in VIM!</title>
	<atom:link href="http://www.spontaneousderivation.com/2009/06/26/live-word-count-in-vim/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spontaneousderivation.com/2009/06/26/live-word-count-in-vim/</link>
	<description>I dream, too. Mostly about fish.</description>
	<lastBuildDate>Sat, 13 Mar 2010 21:38:02 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Arachne Jericho</title>
		<link>http://www.spontaneousderivation.com/2009/06/26/live-word-count-in-vim/comment-page-1/#comment-2329</link>
		<dc:creator>Arachne Jericho</dc:creator>
		<pubDate>Sun, 30 Aug 2009 22:28:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.spontaneousderivation.com/?p=5041#comment-2329</guid>
		<description>Thanks, xell! 

I think I&#039;ll map the calling of the function(s) to something else rather than remapping &quot;p&quot;. Annoying.</description>
		<content:encoded><![CDATA[<p>Thanks, xell! </p>
<p>I think I&#8217;ll map the calling of the function(s) to something else rather than remapping &#8220;p&#8221;. Annoying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xell</title>
		<link>http://www.spontaneousderivation.com/2009/06/26/live-word-count-in-vim/comment-page-1/#comment-2328</link>
		<dc:creator>xell</dc:creator>
		<pubDate>Sun, 30 Aug 2009 06:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.spontaneousderivation.com/?p=5041#comment-2328</guid>
		<description>Hi,

I checked out the script and find out an unelegant solution, however it&#039;s better than &quot;closing and reloading the file&quot;. After pasting just simply call OtherLineWordCount() (and CurrentLineWordCount() if need) manually. The count number will update correctly.

It seems it&#039;s the problem of the IF statement in the WordCount() function. In a nutshell, it can&#039;t detect the paste/put action, so the count number will not be updated. Unluckily I don&#039;t know how to do that either... (A more ugly trick is re-mapping the normal command &quot;p&quot; in vim to automatically call the above two functions as soon as a paste/put action is performed.)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I checked out the script and find out an unelegant solution, however it&#8217;s better than &#8220;closing and reloading the file&#8221;. After pasting just simply call OtherLineWordCount() (and CurrentLineWordCount() if need) manually. The count number will update correctly.</p>
<p>It seems it&#8217;s the problem of the IF statement in the WordCount() function. In a nutshell, it can&#8217;t detect the paste/put action, so the count number will not be updated. Unluckily I don&#8217;t know how to do that either&#8230; (A more ugly trick is re-mapping the normal command &#8220;p&#8221; in vim to automatically call the above two functions as soon as a paste/put action is performed.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arachne Jericho</title>
		<link>http://www.spontaneousderivation.com/2009/06/26/live-word-count-in-vim/comment-page-1/#comment-2326</link>
		<dc:creator>Arachne Jericho</dc:creator>
		<pubDate>Fri, 28 Aug 2009 11:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.spontaneousderivation.com/?p=5041#comment-2326</guid>
		<description>Hi xell, 

I&#039;ve seen this happen, but I don&#039;t know how to debug/fix it, not having written the actual guts of the script; maybe that&#039;s something to ask at &lt;a href=&quot;http://stackoverflow.com/questions/114431/fast-word-count-function-in-vim&quot; rel=&quot;nofollow&quot;&gt;Stack Overflow&lt;/a&gt;. 

It&#039;s a little frustrating, but I usually just closed and reload the file when that happens.</description>
		<content:encoded><![CDATA[<p>Hi xell, </p>
<p>I&#8217;ve seen this happen, but I don&#8217;t know how to debug/fix it, not having written the actual guts of the script; maybe that&#8217;s something to ask at <a href="http://stackoverflow.com/questions/114431/fast-word-count-function-in-vim" rel="nofollow">Stack Overflow</a>. </p>
<p>It&#8217;s a little frustrating, but I usually just closed and reload the file when that happens.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xell</title>
		<link>http://www.spontaneousderivation.com/2009/06/26/live-word-count-in-vim/comment-page-1/#comment-2325</link>
		<dc:creator>xell</dc:creator>
		<pubDate>Thu, 27 Aug 2009 14:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.spontaneousderivation.com/?p=5041#comment-2325</guid>
		<description>Hi, thanks for the script. It works well when I create a new buffer and type something in it. However, when I create a new buffer and paste something in it, the number is always zero; and, after pasting if I start to type words, it counts only what I type but not the pasted texts. BTW, saving the file won&#039;t update the number. How to figure out this?</description>
		<content:encoded><![CDATA[<p>Hi, thanks for the script. It works well when I create a new buffer and type something in it. However, when I create a new buffer and paste something in it, the number is always zero; and, after pasting if I start to type words, it counts only what I type but not the pasted texts. BTW, saving the file won&#8217;t update the number. How to figure out this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arachne Jericho</title>
		<link>http://www.spontaneousderivation.com/2009/06/26/live-word-count-in-vim/comment-page-1/#comment-2283</link>
		<dc:creator>Arachne Jericho</dc:creator>
		<pubDate>Sun, 28 Jun 2009 23:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.spontaneousderivation.com/?p=5041#comment-2283</guid>
		<description>Gerda, 

You&#039;re right. I added the missing part back in.</description>
		<content:encoded><![CDATA[<p>Gerda, </p>
<p>You&#8217;re right. I added the missing part back in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerda Shank</title>
		<link>http://www.spontaneousderivation.com/2009/06/26/live-word-count-in-vim/comment-page-1/#comment-2282</link>
		<dc:creator>Gerda Shank</dc:creator>
		<pubDate>Sun, 28 Jun 2009 22:54:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.spontaneousderivation.com/?p=5041#comment-2282</guid>
		<description>I tried this and get the error message:
E117: Unknown function:  OtherLineWordCount
It seems like part of it is missing.</description>
		<content:encoded><![CDATA[<p>I tried this and get the error message:<br />
E117: Unknown function:  OtherLineWordCount<br />
It seems like part of it is missing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
