You are not logged in.

#1 2006-09-12 08:04:28

<bennym>
Member
From: South-West Germany near Stuttg
Registered: 2006-08-29
Posts: 26

VIM or Emacs for python programming?

Hi!
I began to program with python half a year ago and now I am looking for a better editor than gedit. I' ve heard a lot about emacs and vi.
What is the better editor for python? I don't know if I should use Xemacs or the gnu emacs.
Any suggestions what to choose?

Thank you
benny

Offline

#2 2006-09-12 08:36:19

allucid
Member
Registered: 2006-01-06
Posts: 259

Re: VIM or Emacs for python programming?

They are very different editors so it is best to take a look at both and decide which is right for you.

Most people use gnu emacs over xemacs.

Offline

#3 2006-09-12 09:12:24

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: VIM or Emacs for python programming?

pallavi


Mr Green

Offline

#4 2006-09-12 14:00:22

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: VIM or Emacs for python programming?

Just to summarize what's happened on this board before, more Arch users use vim than e-macs, but both will suggest either. Personally, as a python programmer myself, I hate both lisp (used to configure emacs) and vim configuration syntax. I used jEdit for a long time, its nice and configurable, same as both vim and emacs, but its configured in Java... which I'm also not fond of anymore.

Decent editors that are configured in Python are hard to come by so I wrote my own -- thanks Mr Green for the plug. However, I don't really consider it a good editor yet. You might look at eric3, pype, or dr python.

Now, if you really have decided to go traditional and choose one of vim and emacs, all I can say is when I was making the decision, I used them both for about three months each, vim first and then emacs. I haven't used emacs since.

Editors have personalities. You have to choose the one that suits you and only you. No matter which one you choose, there are going to be people that hate you for it.

Sound advice for choosing a mate too. :-S

Dusty

Offline

#5 2006-09-12 14:39:10

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: VIM or Emacs for python programming?

screenshot20060420002656rn2.th.png
go go go!

Offline

#6 2006-09-12 15:39:30

funktion
Member
From: Providence, RI USA
Registered: 2006-07-10
Posts: 25
Website

Re: VIM or Emacs for python programming?

I personally love VIM for any type of programming/text editing. VIM has a bit of a steep learning curve, but if you stick it out it is really nice!

Also you could check out EasyEclipse Python Distro.


the funk soul brother.

Offline

#7 2006-09-12 18:19:15

toxic
Member
Registered: 2006-06-05
Posts: 117

Re: VIM or Emacs for python programming?

Personally I wouldn't say that neither emacs or vim is better than gedit when it comes to programming.

Certainly, I like programming small scripts like bash or edit configuration files in vim, and for that it's great. Emacs on the other hand is a nice editor, but being a former Windows user, those shortcut commands are killing me.

I think you're looking for a program suite like eclipse, or possible jedit (which is mostly for java, but has support for many other languages).

Offline

#8 2006-09-12 18:23:05

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: VIM or Emacs for python programming?

toxic wrote:

Personally I wouldn't say that neither emacs or vim is better than gedit when it comes to programming.

Then you're not using either of them (emacs or vim) properly.  gedit is made to edit text.  emacs/vim focus on editing source code....

can gedit do this? (NOTE, this is an exaggerated screenshot, to illustrate the point that vim/emacs are more than editing text)
[URL=http://img133.imageshack.us/my.php?image=ss20060427211010dn3.png]ss20060427211010dn3.th.png[/URL]

Offline

#9 2006-09-12 19:03:05

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: VIM or Emacs for python programming?

Vim o/

Offline

#10 2006-09-12 19:28:06

arooaroo
Member
From: London, UK
Registered: 2005-01-13
Posts: 1,268
Website

Re: VIM or Emacs for python programming?

phrakture wrote:

Then you're not using either of them (emacs or vim) properly.  gedit is made to edit text.  emacs/vim focus on editing source code....

+1

One of my likes with Vim (and it applies to Emacs too) is the ease at which I can navigate around the file. There's also the ease at manipulating blocks of code (like formating, indent, yanking, etc).

I made a little reference sheet for vim which newbies may find interesting.

Offline

#11 2006-09-12 20:25:37

toxic
Member
Registered: 2006-06-05
Posts: 117

Re: VIM or Emacs for python programming?

phrakture, that may well be so. My point was concerning some larget projects, in which I consider neither Vim nor Gedit to be an effective editor. Gedit in my opinion is more effective when it comes to handling many classes/resources using all the standard desktop tools - including the ever so effective mouse (which I consider to be a really valuable tool when I must sync my mind against dozen of files).
It's just my opinion that I personally find it easier to develope larger i.e. java projects with Gedit, and minor projects with the ever so excellent Vim smile.

By the way, what font is that you're using in the screenshot ? I found that neither artwiz or terminus is the perfect vim font tongue

Offline

#12 2006-09-12 20:27:36

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: VIM or Emacs for python programming?

phrakture wrote:
toxic wrote:

Personally I wouldn't say that neither emacs or vim is better than gedit when it comes to programming.

Then you're not using either of them (emacs or vim) properly.  gedit is made to edit text.  emacs/vim focus on editing source code....

can gedit do this? (NOTE, this is an exaggerated screenshot, to illustrate the point that vim/emacs are more than editing text)
[URL=http://img133.imageshack.us/my.php?image=ss20060427211010dn3.png]ss20060427211010dn3.th.png[/URL]

Not to be off topic, but which file-browser plugin is that on the left side there phrak?

Offline

#13 2006-09-12 22:10:57

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: VIM or Emacs for python programming?

The font is Bitstream Vera Sans Mono.

File manager is bufexplorer (pacman -S vim-bufexplorer)

Offline

#14 2006-09-12 22:36:02

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: VIM or Emacs for python programming?

Doh...I could have read that on the screenshot! :oops:  Thanks...

Offline

#15 2006-09-12 23:31:52

rab
Member
Registered: 2006-06-15
Posts: 185

Re: VIM or Emacs for python programming?

@phrakture, post your .Xdefaults please smile, i love those colors


rawr

Offline

#16 2006-09-13 02:06:07

Cirdan
Member
Registered: 2006-03-18
Posts: 64

Re: VIM or Emacs for python programming?

elasticdog wrote:
phrakture wrote:
toxic wrote:

Personally I wouldn't say that neither emacs or vim is better than gedit when it comes to programming.

Then you're not using either of them (emacs or vim) properly.  gedit is made to edit text.  emacs/vim focus on editing source code....

can gedit do this? (NOTE, this is an exaggerated screenshot, to illustrate the point that vim/emacs are more than editing text)
[URL=http://img133.imageshack.us/my.php?image=ss20060427211010dn3.png]ss20060427211010dn3.th.png[/URL]

Not to be off topic, but which file-browser plugin is that on the left side there phrak?

I'd like to know also. I like to use vim, mostly becuase I'm a CLI junkie.

Offline

#17 2006-09-13 02:16:14

nogoma
Member
From: Cranston, RI
Registered: 2006-03-01
Posts: 217

Re: VIM or Emacs for python programming?

Cirdan wrote:

I'd like to know also. I like to use vim, mostly becuase I'm a CLI junkie.

I believe he's using bufexplorer.vim. phrak posted all the vim plugins he uses here, there are quite a few really excellent ones in there, so check them out!


-nogoma
---
Code Happy, Code Ruby!
http://www.last.fm/user/nogoma/

Offline

#18 2006-09-13 09:04:03

Eliatamby
Member
Registered: 2005-05-06
Posts: 80

Re: VIM or Emacs for python programming?

I use vim, have never even opened emac, but one thing I'll say is that although the learning curve is pretty steep (i'm at the tip of the iceberg I'm sure), once you start learning some of the commands and have a good vimrc file, you definitely miss it's functionality when using something like gedit, etc.  The d,y,and p command  variations especially.  When ever I press 'd10 ENTER' in kate or gedit, i realise how much I'm missing vim.  Vimtutor is your friend initiallly

However some of this functionality does not mean that much if you're not a keyboard junky.  I try to use my mouse as little as possible, which is why gedit etc. are annoying to me.  If you are a mouse-inclined person, vim (and I'm assuming) emacs mean a bit of a usage paradigm shift

Offline

#19 2006-09-13 11:03:50

liem
Member
Registered: 2006-04-29
Posts: 71
Website

Re: VIM or Emacs for python programming?

I like the vi style, and I like small, simple and powerful apps. I use vim, to bad it isn't small nor simple.

It's 2922 loc Makefile scares me. =P


Sebastian  A. Liem

Offline

#20 2006-09-13 20:27:14

majikstreet
Member
Registered: 2006-07-31
Posts: 96

Re: VIM or Emacs for python programming?

emacs has a pretty big learning curve.. I'm suprised no one has said anything about the wacky key combos you have to do..

anyway, people can get pretty religious about their text editor.


arooaroo wrote:
syd wrote:

Here in NZ we cant spell words with more than 5 letters. So color will have to do.

You must be very special then because "letters" has 7 tongue

Offline

#21 2006-09-13 22:09:32

allucid
Member
Registered: 2006-01-06
Posts: 259

Re: VIM or Emacs for python programming?

majikstreet wrote:

emacs has a pretty big learning curve.. I'm suprised no one has said anything about the wacky key combos you have to do..

anyway, people can get pretty religious about their text editor.

VIM and emacs are both a bit 'wacky' in the key department. Emacs is a bit less wacky (IMO) since it's basic keystrokes are supported in many applications (firefox, bash, GTK).

And I rebind a lot of the long key combos. smile

Offline

#22 2006-09-13 22:11:31

RevertTS
Member
Registered: 2006-02-25
Posts: 85

Re: VIM or Emacs for python programming?

I use vim.  I've always meant to try out emacs, but I've never completely gotten over the size of it (I much prefer specialized programs good at specific things to large programs that attempt to do everything), plus, after awhile of using it, vim just gets to be second nature.

Offline

#23 2006-09-14 06:19:45

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: VIM or Emacs for python programming?

eclipse with pydev plugin is a good way.

Offline

#24 2006-09-14 06:22:01

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: VIM or Emacs for python programming?

notepad

pacman -S wine and run 'notepad' - it's included.

Offline

#25 2006-09-14 06:53:34

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: VIM or Emacs for python programming?

pallavi for python....


Mr Green

Offline

Board footer

Powered by FluxBB