<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi, sorry, but I have no idea what vim is, let alone how to use any of
the features. I'd still like to know why pythonwin prints almost
completely blank pages. vim=vi(m), linux??<br>
<br>
W W wrote:
<blockquote
 cite="mid:333efb450901310741u62d08674u31597850be35244c@mail.gmail.com"
 type="cite">
  <div class="gmail_quote">On Sat, Jan 31, 2009 at 8:45 AM, Wayne
Watson <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:sierra_mtnview@sbcglobal.net">sierra_mtnview@sbcglobal.net</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">Did I miss a response here?<br>
    <br>
Wayne Watson wrote:
    <blockquote type="cite">
      <div>
      <div class="Wj3C7c"> vim? I'm looking at the interactive window
now. Here are two choices
for what you say:<br>
1.<br>
alt-tab vim<br>
Traceback (&nbsp; File "&lt;interactive input&gt;", line 1<br>
&nbsp;&nbsp;&nbsp; alt-tab vim<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^<br>
SyntaxError: invalid syntax<br>
      <br>
2. Pressing the alt-tab keys moves me to the next Windows window, which
happens to contain my mail window. <br>
      <br>
I'm putting an image here. It may not get through to tutor.<br>
      <img src="cid:part1.00030102.08070602@sbcglobal.net" alt=""><br>
      <br>
ALAN GAULD wrote:
      <blockquote type="cite">
        <div
 style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 12pt;">
        <div
 style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 12pt;">
        <div
 style="font-family: times new roman,new york,times,serif; font-size: 12pt;">&gt;
I'm not familiar with these acronyms. MDI, SDI, <br>
        <br>
MDI = Multi Document Interface - has many windows within one single
outer window. <br>
This was MS Standard for apps from Windows 2 through to Windows 95.<br>
        <br>
SDI = Single Document Inteface - has each document within its own
window. <br>
This has been the preferred styule since XP (between 95 and XP I think
the<br>
preferred style was up to the developers!)<br>
        <blockquote type="cite">Alt-Tab and up-arrow for navigating
between
windows/commands <br>
works for me :-) <br>
        </blockquote>
&gt; As soon as I hit, alt-tab, Win moves between all the icons on my
screen. <br>
&gt; There's not chance to press an up arrow. <br>
        <br>
Alt tab switches windows<br>
Up/Down arrow moves up/down the command history within a window<br>
        <br>
So a typical session goes like:<br>
        <br>
Experiment at &gt;&gt;&gt; prompt<br>
Alt-Tab to vim<br>
Edit &amp; save file in vim<br>
Alt-Tab to Console<br>
use up arrow to retrieve last command<br>
execute last command(ie run the script)<br>
Alt Tab to vim to fix bugs or &gt;&gt;&gt; to try out new ideas
&lt;snip&gt;</div>
        </div>
        </div>
      </blockquote>
      </div>
      </div>
    </blockquote>
    </div>
  </blockquote>
  <div><br>
  </div>
  <div>I think you may have misunderstood Alan.</div>
  <div><br>
  </div>
  <div>He has open a vim editor and a python prompt. So he might do
something like:</div>
  <div><br>
  </div>
  <div>
  <div>&gt;&gt;&gt; def test():</div>
  <div>... &nbsp; &nbsp; print "Hello, does" + " this work?"</div>
  <div>...</div>
  <div>&gt;&gt;&gt; test()</div>
  <div>Hello, does this work?</div>
  </div>
  <div><br>
  </div>
  <div>in his interactive shell. So now he knows string concatenation
works so &nbsp;he might hit alt+tab to his open vim window and there add
something like this:</div>
  <div><br>
  </div>
  <div>def salutation(fname, lname):</div>
  <div>&nbsp;&nbsp; &nbsp;print "Good morning, " + fname + " " + lname + ". Welcome to
my program!"</div>
  <div><br>
  </div>
  <div>Or of course he could experiment with the actual bit of code
he's trying to write, but the illustration still stands. Then he saves
his code in vim and runs the script in the shell (in Ipython you'd use
the magic function %run, I'm not sure about the regular shell), to see
how well his code works with the rest of his program.</div>
  <div><br>
  </div>
  <div>That's the same way I edit my code - vim + Ipython gives me all
the tools I need. The nice thing about working with another shell like
that is you can use your favourite editor, whether it be vim, or emacs,
or gedit, or notepad++ or scite, or MS Visual Studio, or notepad, or
wordpad... I'm sure you get the picture ;)</div>
  <div><br>
  </div>
  <div>Heck, you can even use pythonwin the same way.</div>
  <div><br>
  </div>
  <div>HTH,</div>
  <div>Wayne</div>
  </div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html;" http-equiv="Content-Type">
<title>Signature.html</title>
<pre class="moz-signature" cols="76">           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
<font color="#330099">            </font>
<b><b style="color: rgb(204, 51, 204);" class="b"><span
 style="font-family: monospace;">            Q: What do you do when your resistors get to hot?
            A: Open the switch and coulomb they off.
                 -- Anon. (fortunately!)
</span><span style="font-family: monospace; color: rgb(153, 51, 153);"></span></b></b><b
 style="color: rgb(204, 51, 204);" class="b"><span
 style="font-family: monospace; color: rgb(153, 51, 153);"></span></b><span
 style="color: rgb(153, 51, 153);"></span><span
 style="color: rgb(153, 51, 153);">
</span><span style="color: rgb(153, 51, 153);"></span><b
 style="color: rgb(204, 51, 204);" class="b"><span
 style="font-family: monospace;"></span></b><span
 style="color: rgb(204, 51, 204);"></span>                    Web Page: &lt;<a class="moz-txt-link-abbreviated" href="http://www.speckledwithstars.net/">www.speckledwithstars.net/</a>&gt;</pre>
</div>
</body>
</html>