<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vim, Cygwin, MySQL &#38; Zsh Tips by zzapper &#187; Cygwin</title>
	<atom:link href="http://zzapper.co.uk/category/cygwin/feed/" rel="self" type="application/rss+xml" />
	<link>http://zzapper.co.uk</link>
	<description></description>
	<lastBuildDate>Wed, 18 Jan 2012 23:15:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Vim, Cygwin, docx2txt, catdoc and antiword view Microsoft Word Documents as Text</title>
		<link>http://zzapper.co.uk/vim-cygwin-catdoc-and-antiword-view-microsoft-word-documents-as-text/</link>
		<comments>http://zzapper.co.uk/vim-cygwin-catdoc-and-antiword-view-microsoft-word-documents-as-text/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 15:25:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[windows Tips]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/?p=186</guid>
		<description><![CDATA[I wanted to quickly compare two versions of a Word document and realized I didn&#8217;t know how to do it. A quick Google revealed that catdoc was available with Cygwin (and I guess elsewhere) . > catdoc report1a.doc > report1a.txt > catdoc report1b.doc > report1b.txt > diff report1*.txt Alternatively use antiword place the following 4 [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to quickly compare two versions of a Word document and realized I didn&#8217;t know how to do it. A quick Google revealed that catdoc was available with Cygwin (and I guess elsewhere) .</p>
<div class=box>
> catdoc report1a.doc > report1a.txt<br />
> catdoc report1b.doc > report1b.txt<br />
> diff report1*.txt</p>
<p>Alternatively use antiword<br />
place the following 4 lines in your .vimrc file</p>
<p>&#8221; use antiword to allow VIM to view the text of a Word Document<br />
autocmd BufReadPre *.doc set ro<br />
autocmd BufReadPre *.doc set hlsearch!<br />
autocmd BufReadPost *.doc %!antiword &#8220;%&#8221;</p>
<p>> vim -d report1a.doc report1b.doc</p>
<p>Remember neither catdoc or antiword allow you to update your word documents.</p>
<p>catdoc also works with PowerPoint etc.</p>
<p>Just found out that these don&#8217;t work with the XML based docs eg report.docx for these you need Perl based docx2txt</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/vim-cygwin-catdoc-and-antiword-view-microsoft-word-documents-as-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wonderful bindkey : assign anything to any key</title>
		<link>http://zzapper.co.uk/wonderful-bindkey-assign-anything-to-any-key/</link>
		<comments>http://zzapper.co.uk/wonderful-bindkey-assign-anything-to-any-key/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 15:07:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[shell tips]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/?p=141</guid>
		<description><![CDATA[I have been working on a laptop a lot recently but it was bugging me that I didn&#8217;t have the * key on its own key as you do on a full size keyboard. I realized that I wasn&#8217;t using the function keys F1 to F12 at the shell level but didn&#8217;t know how to [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working on a laptop a lot recently but it was bugging me that I didn&#8217;t have the * key on its own key as you do on a full size keyboard.  I realized that I wasn&#8217;t using the function keys F1 to F12 at the shell level but didn&#8217;t know how to configure. Now my situation is a little complicated as I&#8217;m using zsh on cygwin on a Windows 7 PC.</p>
<p>Now I&#8217;m used to using bindkey to launch widgets eg control-O to duplicate previous word on the command line , and control-L the hyper-useful suspend current command line entry to allow execution of a single command ie do a quick ls or change a permission etc.<br />
here they are:-</p>
<p><b>bindkey -M viins &#8216;^O&#8217; copy-prev-shell-word</b>               # copy previous shell word</p>
<p><b>bindkey &#8216;^L&#8217;  push-line</b>                                                           # push current command into a buffer,<br />
These use built-in widgets however the really clever amongst can develop their own.</p>
<p>Anyway I just wanted to reprogram the function keys to output another character or string. I posted a question into the zsh newsgroup and quickly got a reply.  I needed the -s option</p>
<p>What you have to do, type the following at your prompt yes actually type Control-V followed by F7</p>
<p>> <b>bindkey -s &#8220;^vF7&#8243;   &#8220;ls -l&#8221;</b> # replace the ls -l with whatever you like</p>
<p>Now heres the rub, what you actually see generated is  (will vary from system to system)<br />
<strong>bindkey -s &#8220;^[[18~&#8221; &#8216;ls -l&#8217;</strong><br />
<br /> this is what you must copy and paste into your shell startup file</p>
<p>This is actually simple enough for me to type these from the CLI for a short-term use. Boy am I going to enjoy using bindkey!</p>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/wonderful-bindkey-assign-anything-to-any-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great Tip : Opening Multiple Instances of an Application from the Windows Taskbar</title>
		<link>http://zzapper.co.uk/great-tip-opening-multiple-instances-of-an-application-from-the-windows-taskbar/</link>
		<comments>http://zzapper.co.uk/great-tip-opening-multiple-instances-of-an-application-from-the-windows-taskbar/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 17:05:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[windows Tips]]></category>
		<category><![CDATA[windows 7 taskbar]]></category>

		<guid isPermaLink="false">http://zzapper.co.uk/great-tip-opening-multiple-instances-of-an-application-from-the-windows-taskbar/</guid>
		<description><![CDATA[Tip 1:- I always need several Cygwin Windows open so I was very frustrated by Windows 7 only allowing me to open one Cygwin from the Windows 7 Taskbar. This is because once you click on an icon it disappears from the Taskbar! This is different to the behavior of the previous XP or Vista [...]]]></description>
			<content:encoded><![CDATA[<p>Tip 1:-<br />
I always need several Cygwin Windows open so I was very frustrated by Windows 7 only allowing me to open one Cygwin from the Windows 7 Taskbar. This is because once you click on an icon it disappears from the Taskbar! This is different to the behavior of the previous XP or Vista Taskbar and often prompts users to select the Vista Taskbar compatibility. There is fortunately a work around depress the SHIFT button and then click the existing open icon on the taskbar and voila you will spawn a application window! </p>
<p>Tip 2:-<br />
The Properties Tab is HIDDEN on the Windows 7 Taskbar and had me hating it until I found it. Rightmouse click the relevant Application Icon on the Taskbar then hover over the revealed tab and Right Mouse Click this and there magically is the <strong>Properties Tab</strong>!!</p>
]]></content:encoded>
			<wfw:commentRss>http://zzapper.co.uk/great-tip-opening-multiple-instances-of-an-application-from-the-windows-taskbar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

