<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. Or have I got that confused?</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </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 <keridee@jayco.net><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> Just what happens? Just what doesn't happen?<BR><BR>You say you have Python 2.3 installed...<BR><BR><BR>> Greetings,<BR>><BR>> I use an editor called 'vim' on GNU/Linux.<BR>> I invoke vim on the command-line by typing: vi<BR>> (vi is a link to /usr/bin/vim)<BR>> In my home directory I have a vim config file<BR>> named .vimrc (that is: dot_vimrc [the dot makes it hidden]).<BR>> The .vimrc file has some things in it that do some nice stuff<BR>> for editing Python files; such as syntax highlighting, line numbers,<BR>> indenting, and also runs Python when I press the F2 function key.<BR>> I run vim in an X ternminal called Konsole. I can also run
it<BR>> from the command-line in any tty.<BR>><BR>> Okay, here it is. Just copy/paste this into an editor, and save it as:<BR>> .vimrc<BR>><BR>> -------------8<------Cut Here-------->8---------------<BR>> " .vimrc<BR>> "<BR>> " Created by Jeff Elkner 23 January 2006<BR>> " Last modified 2 February 2006<BR>> "<BR>> " Turn on syntax highlighting and autoindenting<BR>> syntax enable<BR>> filetype indent on<BR>> " set autoindent width to 4 spaces (see<BR>> " <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>> set nu<BR>> set et<BR>> set sw=4<BR>> set smarttab<BR>> " Bind <f2> key to running the python interpreter on the currently active<BR>> " file. (curtesy of Steve Howell from email dated 1 Feb 2006).<BR>> map <f2> :w\|!python %<cr><BR>> -------------8<------Cut
Here-------->8---------------<BR>><BR>> To use it, just type: vi myCode.py<BR>> (If you don't have a link named vi that points to /usr/bin/vim,<BR>> you'll have to type vim or /usr/bin/vim to get it going...<BR>> since I don't have any idea what you're working at, I can't say.)<BR>><BR>> Once you're in vim, looking at your code, press F2 to run it.<BR>><BR>> I understand that Emacs also does Python! =)<BR>> But I won't go there... I don't do Emacs.<BR>> -- <BR>> bhaaluu at gmail dot com<BR>><BR>> On 7/17/07, Luke Paireepinart <rabidpoobear@gmail.com> wrote:<BR>>> A lot of Python programmers<BR>>> use Vi for writing their code. do you have access to that through SSH?<BR>>> I'm not quite sure what you mean by "SSH editor."<BR>>> -Luke<BR>>> _______________________________________________<BR>>> Tutor maillist - Tutor@python.org<BR>>> <A
href="http://mail.python.org/mailman/listinfo/tutor" target=_blank>http://mail.python.org/mailman/listinfo/tutor</A><BR>>><BR>> _______________________________________________<BR>> Tutor maillist - Tutor@python.org<BR>> <A href="http://mail.python.org/mailman/listinfo/tutor" target=_blank>http://mail.python.org/mailman/listinfo/tutor</A><BR>> <BR><BR>_______________________________________________<BR>Tutor maillist - 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>