[Tutor] Python + editor
Marc
marcolinux@linuxbr.com.br
Mon, 12 Aug 2002 17:53:25 -0300
Matthew Navarre (mnavarre@anteon.com) wrote:
> On Monday 12 August 2002 08:36 am, Marc wrote:
> > Andreas Daskalopoulos (daskalious@softhome.net) wrote:
> > > What are you guys using for editing your python files on Linux?
> >
> > Still use vim (syntax colors very beautiful!)but recently converted to
> > nedit ( http://www.nedit.org ):
> >
>
> There's a pretty nice vim script that puts a python menu in the menubar at:
> http://vim.sourceforge.net/script.php?script_id=30
> lets you select blocks, indent, dedent and comment out blocks and has a menu
> with all classes and functions in your script.
>
Great! I'll check it out later at night...
> > Ctrl+C,ctrl+V :-);
> Vim ain't that hard...
Indeed. Nothing beats yy p . But consider "selling" a python editor to
some windows people. CTRL+CV rules for them.
> > Show line numbers;
> :set nu
Sweet. Living and learning... Eats some precious 8 characters, though. With
nedit it just a clickt-click: show line numbers. And they keep showing even
when scrolling. Horizontally.
> > Block selection (ctrl+mouse selection).
> > Useful for moving functions around without the indentation;
> The python script has a ]v shortcut to select a block. There's also Visual
> mode in Vim which allows you to do things like
> :36 #move to line 36
> V #visual block mode
> 10j #select 10 lines
> YY #yank the selection
> :75 #move to line 75
> p #paste the selection
Can't beat crtl+mouse selection.
If this serves as a way to measure the ease of editing, try to explain the
procedure over a fone line.
To mom. :)
> > Can redefine the print command:
> > Install a2ps and gv;
> > Edit .Xdefaults: nedit.printCommand: a2ps -4 -Pdisplay ;
> > Voila: Can print up to four (-4) pages in one side of sheet!;
> > (great for reading Danny's code on a bus. Yup,I don't have a zaurus
> > yet.:)
> >
>
> I'm sure you can do this in vim, I'm just not sure how.
That's my problem with vim. And some others softwares out there.They have a lot
of power, but hidden deep inside a dotfile.
The lack of a easy gui, makes life hard for beginners.
OK, we can use gvim but is still hard to do some things like the print command
above.And it seems like a skin thing, not fully integrated. Same goes to
emacs-X11.
Sure vim can do a lot of things, but the learning curve is too steep.
Most tricks I've learned, was looking in other peoples' dotfiles. Thats OK when
we are young, full of energy for search the docs, but gets quite frustrating
after some time and u need the work done.Quick.
Think about a exhibition (Linux expo anyone?) and someone comes to your booth
asking how to redefine the print command .Yup, u just lost a customer while you
was looking at the docs.:)
You know, life is short.That's why I'm slowly giving up from things like:
- C/perl ;
- vi/emacs;
- windows (nightmare when comes down to license issues and security. Not to
mention total lack of choice( from vendor that is. Cant get a gnu like system
from Windos CDs.
- mutt. Just kidding. It's worth every minute spent reading docs.
Well, I'm not trolling.
I just think that programming (and using) a computer should be a enjoyable
experience, something I'm experimenting right now with GNU/linux and python.And
nedit of course :) .
See Ya.
.:: MarcoLinux ::.
--
There are 10 kinds of people in the world:
Those who understand binary, and those who don't. - Slashdot