<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I initially thought Vim was sort of the same as Vi, just a few small differences or upgrades.&nbsp; Or have I got that confused?</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Sara<BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Tiger12506 &lt;keridee@jayco.net&gt;<BR>To: tutor@python.org<BR>Sent: Tuesday, July 17, 2007 12:33:54 PM<BR>Subject: Re: [Tutor] IDLE Usage - was Interpreter Restarts<BR><BR>
<DIV>Yeah. But she's running Windows.<BR>Perhaps vim is scary to some Windows users.<BR>(I thought it was scary and annoying. Are all those ~ characters really in <BR>the file or not?<BR>I kept second guessing the editor.)<BR><BR>--Sara, could you give an example of how it doesn't work?<BR>&nbsp;&nbsp;Just what happens? Just what doesn't happen?<BR><BR>You say you have Python 2.3 installed...<BR><BR><BR>&gt; Greetings,<BR>&gt;<BR>&gt; I use an editor called 'vim' on GNU/Linux.<BR>&gt; I invoke vim on the command-line by typing: vi<BR>&gt; (vi is a link to /usr/bin/vim)<BR>&gt; In my home directory I have a vim config file<BR>&gt; named .vimrc (that is: dot_vimrc [the dot makes it hidden]).<BR>&gt; The .vimrc file has some things in it that do some nice stuff<BR>&gt; for editing Python files; such as syntax highlighting, line numbers,<BR>&gt; indenting, and also runs Python when I press the F2 function key.<BR>&gt; I run vim in an X ternminal called Konsole. I can also run
 it<BR>&gt; from the command-line in any tty.<BR>&gt;<BR>&gt; Okay, here it is. Just copy/paste this into an editor, and save it as:<BR>&gt; .vimrc<BR>&gt;<BR>&gt; -------------8&lt;------Cut Here--------&gt;8---------------<BR>&gt; " .vimrc<BR>&gt; "<BR>&gt; " Created by Jeff Elkner 23 January 2006<BR>&gt; " Last modified 2 February 2006<BR>&gt; "<BR>&gt; " Turn on syntax highlighting and autoindenting<BR>&gt; syntax enable<BR>&gt; filetype indent on<BR>&gt; " set autoindent width to 4 spaces (see<BR>&gt; " <A href="http://www.vim.org/tips/tip.php?tip_id=83" target=_blank>http://www.vim.org/tips/tip.php?tip_id=83</A>)<BR>&gt; set nu<BR>&gt; set et<BR>&gt; set sw=4<BR>&gt; set smarttab<BR>&gt; " Bind &lt;f2&gt; key to running the python interpreter on the currently active<BR>&gt; " file.&nbsp;&nbsp;(curtesy of Steve Howell from email dated 1 Feb 2006).<BR>&gt; map &lt;f2&gt; :w\|!python %&lt;cr&gt;<BR>&gt; -------------8&lt;------Cut
 Here--------&gt;8---------------<BR>&gt;<BR>&gt; To use it, just type: vi myCode.py<BR>&gt; (If you don't have a link named vi that points to /usr/bin/vim,<BR>&gt; you'll have to type vim or /usr/bin/vim to get it going...<BR>&gt; since I don't have any idea what you're working at, I can't say.)<BR>&gt;<BR>&gt; Once you're in vim, looking at your code, press F2 to run it.<BR>&gt;<BR>&gt; I understand that Emacs also does Python! =)<BR>&gt; But I won't go there... I don't do Emacs.<BR>&gt; -- <BR>&gt; bhaaluu at gmail dot com<BR>&gt;<BR>&gt; On 7/17/07, Luke Paireepinart &lt;rabidpoobear@gmail.com&gt; wrote:<BR>&gt;&gt; A lot of Python programmers<BR>&gt;&gt; use Vi for writing their code.&nbsp;&nbsp;do you have access to that through SSH?<BR>&gt;&gt; I'm not quite sure what you mean by "SSH editor."<BR>&gt;&gt; -Luke<BR>&gt;&gt; _______________________________________________<BR>&gt;&gt; Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;Tutor@python.org<BR>&gt;&gt; <A
 href="http://mail.python.org/mailman/listinfo/tutor" target=_blank>http://mail.python.org/mailman/listinfo/tutor</A><BR>&gt;&gt;<BR>&gt; _______________________________________________<BR>&gt; Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;Tutor@python.org<BR>&gt; <A href="http://mail.python.org/mailman/listinfo/tutor" target=_blank>http://mail.python.org/mailman/listinfo/tutor</A><BR>&gt; <BR><BR>_______________________________________________<BR>Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;Tutor@python.org<BR><A href="http://mail.python.org/mailman/listinfo/tutor" target=_blank>http://mail.python.org/mailman/listinfo/tutor</A></DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>
      <hr size=1>Got a little couch potato? <br>
Check out fun <a href="http://us.rd.yahoo.com/evt=48248/*http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz">summer activities for kids.</a></body></html>