<?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: Add Vim Editing Mode To Your ZSH Prompt</title>
	<atom:link href="http://pthree.org/2009/03/28/add-vim-editing-mode-to-your-zsh-prompt/feed/" rel="self" type="application/rss+xml" />
	<link>http://pthree.org/2009/03/28/add-vim-editing-mode-to-your-zsh-prompt/</link>
	<description>Linux.  GNU.  Freedom.</description>
	<lastBuildDate>Wed, 17 Mar 2010 18:42:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<item>
		<title>By: anon</title>
		<link>http://pthree.org/2009/03/28/add-vim-editing-mode-to-your-zsh-prompt/#comment-110563</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Tue, 29 Dec 2009 10:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1008#comment-110563</guid>
		<description>I was using emacs mode, since I did not know what mode I was in when using vi mode. Finally I can use vi mode and know what mode I&#039;m in. Thank You</description>
		<content:encoded><![CDATA[<p>I was using emacs mode, since I did not know what mode I was in when using vi mode. Finally I can use vi mode and know what mode I&#8217;m in. Thank You</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joecan</title>
		<link>http://pthree.org/2009/03/28/add-vim-editing-mode-to-your-zsh-prompt/#comment-110524</link>
		<dc:creator>joecan</dc:creator>
		<pubDate>Sun, 22 Nov 2009 06:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1008#comment-110524</guid>
		<description>Is there a way to do this in bash?</description>
		<content:encoded><![CDATA[<p>Is there a way to do this in bash?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nasrulah</title>
		<link>http://pthree.org/2009/03/28/add-vim-editing-mode-to-your-zsh-prompt/#comment-110266</link>
		<dc:creator>nasrulah</dc:creator>
		<pubDate>Wed, 14 Oct 2009 17:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1008#comment-110266</guid>
		<description>Thanks a  lot....</description>
		<content:encoded><![CDATA[<p>Thanks a  lot&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NicDumZ</title>
		<link>http://pthree.org/2009/03/28/add-vim-editing-mode-to-your-zsh-prompt/#comment-110233</link>
		<dc:creator>NicDumZ</dc:creator>
		<pubDate>Thu, 01 Oct 2009 10:30:43 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1008#comment-110233</guid>
		<description>I was unhappy with this solution, becausing hitting &quot;enter&quot; in command mode would not reset the VIMODE variable.
Use case: enter command mode, search for a particular command, hit enter to run it.

Here is how I solved this problem:

&lt;code lang=&quot;bash&quot;&gt;
function accept_line {
    VIMODE=&#039;&#039;
    doprompt
    builtin zle .accept-line
}
zle -N accept_line
bindkey -M vicmd &quot;^M&quot; accept_line
&lt;/code&gt;

</description>
		<content:encoded><![CDATA[<p>I was unhappy with this solution, becausing hitting &#8220;enter&#8221; in command mode would not reset the VIMODE variable.<br />
Use case: enter command mode, search for a particular command, hit enter to run it.</p>
<p>Here is how I solved this problem:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> accept_line <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #007800;">VIMODE</span>=<span style="color: #ff0000;">''</span><br />
&nbsp; &nbsp; doprompt<br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">builtin</span> zle .accept-line<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span><br />
zle <span style="color: #660033;">-N</span> accept_line<br />
bindkey <span style="color: #660033;">-M</span> vicmd <span style="color: #ff0000;">&quot;^M&quot;</span> accept_line</div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://pthree.org/2009/03/28/add-vim-editing-mode-to-your-zsh-prompt/#comment-109872</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Mon, 30 Mar 2009 18:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1008#comment-109872</guid>
		<description>The file I&#039;m linking to isn&#039;t my .zshrc, but just the prompt. If you want to add Vi keyboard bindings in your ZSH, then in your .zshrc:

&lt;code lang=&quot;bash&quot;&gt;bindkeys -v&lt;/code&gt;

</description>
		<content:encoded><![CDATA[<p>The file I&#8217;m linking to isn&#8217;t my .zshrc, but just the prompt. If you want to add Vi keyboard bindings in your ZSH, then in your .zshrc:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bindkeys <span style="color: #660033;">-v</span></div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Federico</title>
		<link>http://pthree.org/2009/03/28/add-vim-editing-mode-to-your-zsh-prompt/#comment-109871</link>
		<dc:creator>Federico</dc:creator>
		<pubDate>Mon, 30 Mar 2009 18:07:26 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=1008#comment-109871</guid>
		<description>I&#039;ve tried your amazing .zshrc but vi keys don&#039;t work for me. If i press ESC nothing appen and zsh continue to work normally with the standard emacs keybinding</description>
		<content:encoded><![CDATA[<p>I&#8217;ve tried your amazing .zshrc but vi keys don&#8217;t work for me. If i press ESC nothing appen and zsh continue to work normally with the standard emacs keybinding</p>
]]></content:encoded>
	</item>
</channel>
</rss>
