Editors

Please compose all posts in Emacs.

Moderators: phlip, Moderators General, Prelates

User avatar
enk
Posts: 754
Joined: Mon Sep 10, 2007 12:20 am UTC
Location: Aalborg, Denmark
Contact:

Re: Editors

Postby enk » Tue Mar 04, 2008 1:39 pm UTC

Arancaytar wrote:I'm almost always on a slow connection


That's what ed was meant for :wink:


For people who like the accessibility of a standard editor: Learn to enjoy it & stop complaining :)

IMO pico/nano is too simple to actually enjoy and ed is not very user friendly. That leaves vi/vim. If possible, use vim over vi, and if you haven't already, run vimtutor. Take the time to feel comfortable..
phlip wrote:Ha HA! Recycled emacs jokes.

User avatar
Arancaytar
Posts: 1642
Joined: Thu Mar 15, 2007 12:54 am UTC
Location: 52.44°N, 13.55°E
Contact:

Re: Editors

Postby Arancaytar » Fri Mar 07, 2008 11:22 am UTC

what ed was meant for


Yes, but I'm too much of a noob for ed.
"You cannot dual-wield the sharks. One is enough." -Our DM.
Image

User avatar
psykx
Posts: 408
Joined: Sat Feb 23, 2008 11:24 pm UTC
Location: England
Contact:

Re: Editors

Postby psykx » Sun Mar 23, 2008 1:19 pm UTC

Kwrite for the WIN, there is just something about kate that makes me cringe with bloat although I have to admit I use eclipse for almost all of my programing (php and java atm). For the CLI I use nano or pico. I once tried to get into vi or emacs and then I realised that it was pointless I don't have any problems using kwrite
Berengal wrote:Only if they're killer robots. Legos are happy robots. Besides, even if they were killer robots it wouldn't stop me. You can't stop science and all that.

User avatar
Arancaytar
Posts: 1642
Joined: Thu Mar 15, 2007 12:54 am UTC
Location: 52.44°N, 13.55°E
Contact:

Re: Editors

Postby Arancaytar » Wed Mar 26, 2008 3:14 pm UTC

enk wrote:That leaves vi/vim. If possible, use vim over vi, and if you haven't already, run vimtutor. Take the time to feel comfortable..


vi is symlinked to vim on just about every system I've seen. This has led to me taking up the habit of typing "vi" to start it. I would probably be very surprised if I was ever using a system that didn't do this, and was suddenly faced with vi instead of vim.
"You cannot dual-wield the sharks. One is enough." -Our DM.
Image

User avatar
enk
Posts: 754
Joined: Mon Sep 10, 2007 12:20 am UTC
Location: Aalborg, Denmark
Contact:

Re: Editors

Postby enk » Wed Mar 26, 2008 5:19 pm UTC

Arancaytar wrote:
enk wrote:That leaves vi/vim. If possible, use vim over vi, and if you haven't already, run vimtutor. Take the time to feel comfortable..


vi is symlinked to vim on just about every system I've seen. This has led to me taking up the habit of typing "vi" to start it. I would probably be very surprised if I was ever using a system that didn't do this, and was suddenly faced with vi instead of vim.


We have this server at my university, it's Solaris 9 from 2002. vi is certainly vi and they didn't install vim until I asked them last year (and no symlinkage...). Luckily I'm going to the real CS institute next year.
phlip wrote:Ha HA! Recycled emacs jokes.

User avatar
aldimond
Otter-duck
Posts: 2665
Joined: Fri Nov 03, 2006 8:52 am UTC
Location: Uptown, Chicago
Contact:

Re: Editors

Postby aldimond » Thu Mar 27, 2008 10:01 am UTC

The default install of FreeBSD has nvi (a vi clone) and not vim; vi is symlinked to nvi and remains so after vim installation. At least that's how it was last time I had a working FreeBSD machine.

Fair enough to me. nvi is what you want sometimes. Like when your IDE controllers go berserk and change how they refer to your disks (possibly because you dropped the laptop so many times that the not-designed-to-be-removable CD drive fell out), so your /usr partition is unavailable and you just need to make some quick changes to your /etc/fstab to get yourself back working again. Typing vi Just Worked (because nvi was in /bin and probably statically linked)

If this happened on my Linux box, where vi is linked to vim, in all its dynamically linked glory, I would have been down to ed. Actually the changes I had to make in that case could have been easily accomplished with a sed one-liner, but it's nice to have visual verification that you're doing it right sometimes.

EDIT: correction. My Linux box is (sadly) running Gentoo, which has nano in /bin, and ldd output indicates it should be able to run without anything from /usr. I am better at ed than nano, though.
One of these days my desk is going to collapse in the middle and all its weight will come down on my knee and tear my new fake ACL. It could be tomorrow. This is my concern.

User avatar
enk
Posts: 754
Joined: Mon Sep 10, 2007 12:20 am UTC
Location: Aalborg, Denmark
Contact:

Re: Editors

Postby enk » Wed Sep 17, 2008 12:44 pm UTC

For those of you who prefer simple editors ("emacs is too weird and heavy", "you can't type in vim"), I'd like call attention to evim, which is vim running in "easy mode". It's an easy to use, widely available and powerful editor.

You use arrow keys and you type to write, just as you'd expect. It's still not as easy as pico/nano, but you get access to all the neat features of vim. And it's just as available as vim, which I'm pretty sure is more widely available than pico/nano/joe/emacs.
phlip wrote:Ha HA! Recycled emacs jokes.

User avatar
headprogrammingczar
Posts: 3072
Joined: Mon Oct 22, 2007 5:28 pm UTC
Location: Beaming you up

Re: Editors

Postby headprogrammingczar » Wed Sep 17, 2008 4:11 pm UTC

Emacs is pretty widely available...
<quintopia> You're not crazy. you're the goddamn headprogrammingspock!
<Weeks> You're the goddamn headprogrammingspock!
<Cheese> I love you

EvanED
Posts: 4327
Joined: Mon Aug 07, 2006 6:28 am UTC
Location: Madison, WI
Contact:

Re: Editors

Postby EvanED » Wed Sep 17, 2008 8:35 pm UTC

I have used a system without it though. I built and installed it in my home directory. It was a Sun Niagra system, which is an 8-core 4-way SMT CPU. It felt wonderful to run the command 'make -j32'

User avatar
headprogrammingczar
Posts: 3072
Joined: Mon Oct 22, 2007 5:28 pm UTC
Location: Beaming you up

Re: Editors

Postby headprogrammingczar » Wed Sep 17, 2008 8:50 pm UTC

EvanED wrote:8-core 4-way SMT CPU

WANT!
<quintopia> You're not crazy. you're the goddamn headprogrammingspock!
<Weeks> You're the goddamn headprogrammingspock!
<Cheese> I love you

Voidpointer
Posts: 12
Joined: Wed Sep 17, 2008 6:01 pm UTC

Re: Editors

Postby Voidpointer » Thu Sep 18, 2008 1:35 am UTC

Emacs all the way.

My biggest problem is when source control commits open a VI terminal and I blithely hit c-x c-s which of course causes VI to go into Akira mode, and I basically have to run for the emergency fire ax down the hall to kill it before it turns into a giant blob of cyberflesh bent on ingesting Tokyo.

User avatar
hotaru
Posts: 1025
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Editors

Postby hotaru » Thu Sep 18, 2008 4:54 am UTC

headprogrammingczar wrote:Emacs is pretty widely available...

where can i get emacs with a real free software license?

Code: Select all

factorial product enumFromTo 1
isPrime n 
factorial (1) `mod== 1

masher
Posts: 821
Joined: Tue Oct 23, 2007 11:07 pm UTC
Location: Melbourne, Australia

Re: Editors

Postby masher » Thu Sep 18, 2008 5:22 am UTC

Doesn't the GPL do it for you?

http://www.gnu.org/software/emacs/

User avatar
hotaru
Posts: 1025
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Editors

Postby hotaru » Thu Sep 18, 2008 6:48 am UTC

masher wrote:Doesn't the GPL do it for you?

http://www.gnu.org/software/emacs/

no, it doesn't.
i consider anything more restrictive than the (revised, 3-clause) BSD license non-free, and i strongly prefer the ISC, MIT/X11, and 2-clause BSD licenses over that.
Last edited by hotaru on Thu Sep 18, 2008 7:48 am UTC, edited 1 time in total.

Code: Select all

factorial product enumFromTo 1
isPrime n 
factorial (1) `mod== 1

masher
Posts: 821
Joined: Tue Oct 23, 2007 11:07 pm UTC
Location: Melbourne, Australia

Re: Editors

Postby masher » Thu Sep 18, 2008 7:13 am UTC

Fair enough.

I'm not really in the loop with the different flavours of licence....

qbg
Posts: 586
Joined: Tue Dec 18, 2007 3:37 pm UTC

Re: Editors

Postby qbg » Thu Sep 18, 2008 2:28 pm UTC

hotaru wrote:
headprogrammingczar wrote:Emacs is pretty widely available...

where can i get emacs with a real free software license?

Hemlock is an emacs-style editor and may be free enough. (Might be public domain, but I'm not sure)

sakeniwefu
Posts: 170
Joined: Sun May 11, 2008 8:36 pm UTC

Re: Editors

Postby sakeniwefu » Thu Sep 18, 2008 3:16 pm UTC

hotaru wrote:
masher wrote:Doesn't the GPL do it for you?

no, it doesn't.

What about public domain?

User avatar
hotaru
Posts: 1025
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Editors

Postby hotaru » Thu Sep 18, 2008 4:30 pm UTC

sakeniwefu wrote:
hotaru wrote:
masher wrote:Doesn't the GPL do it for you?

no, it doesn't.

What about public domain?

comparing mg to emacs is like comparing busybox vi to vim.

Code: Select all

factorial product enumFromTo 1
isPrime n 
factorial (1) `mod== 1

sakeniwefu
Posts: 170
Joined: Sun May 11, 2008 8:36 pm UTC

Re: Editors

Postby sakeniwefu » Fri Sep 19, 2008 1:03 am UTC

hotaru wrote:comparing mg to emacs is like comparing busybox vi to vim.

:oops: Sorry, I didn't notice you were just trolling for the sake of it :wink:
So you ditch emacs for being GNU(yet you use not only vim but also busybox)? Speak about hypocrisy. RMS would be proud of you :lol:

User avatar
hotaru
Posts: 1025
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Editors

Postby hotaru » Fri Sep 19, 2008 3:13 am UTC

sakeniwefu wrote:
hotaru wrote:comparing mg to emacs is like comparing busybox vi to vim.

:oops: Sorry, I didn't notice you were just trolling for the sake of it :wink:
So you ditch emacs for being GNU(yet you use not only vim but also busybox)? Speak about hypocrisy. RMS would be proud of you :lol:

no, i don't use vim, and i only use busybox when i don't have any other choice. i usually use vi or nvi. the fact that i know what features an editor has doesn't mean that i use it.

Code: Select all

factorial product enumFromTo 1
isPrime n 
factorial (1) `mod== 1

Soljer
Posts: 29
Joined: Fri Feb 27, 2009 6:31 pm UTC

Re: Editors

Postby Soljer » Wed Mar 11, 2009 5:31 pm UTC

Windows:
Notepad++ For most code/general text editing
Eclipse for java
Microsoft Word for word processing

Linux:
Notepad++ through wine or gedit for code/general text editing if I have GUI
vim or emacs through the command line (I don't prefer one over the other)
Open Office for word processing

User avatar
Likpok
Posts: 471
Joined: Tue Feb 20, 2007 6:21 am UTC
Location: :noitacoL
Contact:

Re: Editors

Postby Likpok » Sat Mar 28, 2009 7:31 am UTC

The basic fact is that both emacs and vim have crippling faults. Emacs does some cool things, but decided on elisp as a language. Vim does some cool things, but is nowhere near modifiable enough.

So we are at an impasse.

Until YI, the most recursive editor comes up to snuff. It's written in Haskell (so you have a good language) and is hot-re-compilable (no interpretation! small!) and configurable (in haskell!).
Modal (if you want) or not (if you want).

It's like a lovechild of emacs and vim, but without all the suck. (note that development is not yet done, not all of your favorite features may exist)
There's an art to cooking toast
Never try to guess
Cook it till it's smoking
Then twenty seconds less.

User avatar
Berengal
Superabacus Mystic of the First Rank
Posts: 2707
Joined: Thu May 24, 2007 5:51 am UTC
Location: Bergen, Norway
Contact:

Re: Editors

Postby Berengal » Sat Mar 28, 2009 1:41 pm UTC

Likpok wrote:(note that development is not yet done, not all of your favorite features may exist)

Awesome unicode characters in my haskell code is awesome;

Code: Select all

import Control.Arrow((&&&))                                                                                                           
import Data.List(group)                                                                                                               
                                                                                                                                       
factorial ∷  Integer → Integer                                                                                                         
factorial 0 = 1                                                                                                                       
factorial n                                                                                                                           
    | n ≤  −1 = error "Division by zer... wait..."                                                                                     
    | otherwise = n × factorial (n − 1)                                                                                               
                                                                                                                                       
primes ∷  [Integer]                                                                                                                   
primes = 2:3:5:[n | n ←  [7,9..], all (λp →  mod n p == 0) (takeWhile (≤ (ceiling · sqrt · fromInteger) n) primes)]                   
                                                                                                                                       
runlength ∷  (Eq a) ⇒ [a] →  [(a, Int)]                                                                                               
runlength = map (head &&& length) · group                                                                                             

but it's still a few features short of useable. Mainly it lacks self-documentation. If I had that I could probably try to hack the rest. As it stands, emacs is still the superior Haskell editor, but I look forward to the day YI gets a proper tutorial.
It is practically impossible to teach good programming to students who are motivated by money: As potential programmers they are mentally mutilated beyond hope of regeneration.

User avatar
evilbeanfiend
Posts: 2650
Joined: Tue Mar 13, 2007 7:05 am UTC
Location: the old world

Re: Editors

Postby evilbeanfiend » Thu Apr 09, 2009 9:57 pm UTC

Voidpointer wrote:Emacs all the way.

My biggest problem is when source control commits open a VI terminal and I blithely hit c-x c-s which of course causes VI to go into Akira mode, and I basically have to run for the emergency fire ax down the hall to kill it before it turns into a giant blob of cyberflesh bent on ingesting Tokyo.


get source control to open emacs instead then? whats EDITOR set to in your environment ?
in ur beanz makin u eveel

User avatar
Ptolom
Posts: 1559
Joined: Mon Mar 24, 2008 1:55 pm UTC
Location: The entropy pool
Contact:

Re: Editors

Postby Ptolom » Fri Apr 10, 2009 7:17 pm UTC

I've been using a combination of nano and gedit. Is it really worth switching to vim or emacs? How bad should I feel for not knowing any of the more "advanced" editors?

User avatar
Area Man
Posts: 256
Joined: Thu Dec 25, 2008 8:08 pm UTC
Location: Local

Re: Editors

Postby Area Man » Fri Apr 10, 2009 7:23 pm UTC

Ptolom wrote:I've been using a combination of nano and gedit. Is it really worth switching to vim or emacs? How bad should I feel for not knowing any of the more "advanced" editors?
Open a terminal and type vimtutor, go through the exercises. I think you'll be surprised at how much you can do without a mouse, and without learning crazy deathgrips.
Bisquick boxes are a dead medium.

0xBADFEED
Posts: 687
Joined: Mon May 05, 2008 2:14 am UTC

Re: Editors

Postby 0xBADFEED » Fri Apr 10, 2009 8:31 pm UTC

Berengal wrote:Awesome unicode characters in my haskell code is awesome;
<...snip...>

I couldn't tell whether you're talking about YI or not.

But you can do that in Emacs too. I have my Emacs haskell-mode set up to do Unicode replacement for Haskell operators.

Makes it look mathy...

User avatar
netcrusher88
Posts: 2166
Joined: Mon Mar 26, 2007 4:35 pm UTC
Location: Seattle

Re: Editors

Postby netcrusher88 » Wed Apr 15, 2009 11:36 am UTC

vim, all the way.

It should be noted that on systems where vi is symlinked to vim, it launches vim in "compatibility mode" (also accessible with :set compatible) which is designed to be vi-compatible - although it isn't entirely.

I tried emacs for a while, didn't much like it. I think it does come down to what someone said about two pages back: emacs is a programmer's text editor/IDE/OS/kitchen sink, whereas vim is great for sysadmins, which is my chosen path. Obviously there's a lot of counterexamples and both can be used for the other. I really prefer vim period. I don't do that whole chording thing.
Sexothermic
I have only ever made one prayer to God, a very short one: "O Lord, make my enemies ridiculous." And God granted it. -Voltaire
They said we would never have a black president until Swine Flu. -Gears

User avatar
SJ Zero
Posts: 740
Joined: Wed Sep 03, 2008 3:10 pm UTC
Contact:

Re: Editors

Postby SJ Zero » Wed Apr 15, 2009 4:39 pm UTC

Whenever I'm in Windows, notepad is filled with win and god. You can't beat it, don't even try.

For at least a decade, since I first fired up the mini-linux distribution I found that ran linux .98 from a distribution of slackware, a vi clone is almost universally installed by default, so it's stupid to use anything else. I can type 'vi' in BeOS, or macOS, or FreeBSD, or any one of a bunch of different operating systems, and get something I can use. Emacs could be really cool. I don't know, and I don't care, because odds are I'm going to have to use vi to edit something before I can get it -- since I've got to learn it anyway, why not just use vi?

User avatar
Ptolom
Posts: 1559
Joined: Mon Mar 24, 2008 1:55 pm UTC
Location: The entropy pool
Contact:

Re: Editors

Postby Ptolom » Sun Apr 19, 2009 8:29 pm UTC

Area Man wrote:
Ptolom wrote:I've been using a combination of nano and gedit. Is it really worth switching to vim or emacs? How bad should I feel for not knowing any of the more "advanced" editors?
Open a terminal and type vimtutor, go through the exercises. I think you'll be surprised at how much you can do without a mouse, and without learning crazy deathgrips.

ok then. I'll have a go

User avatar
MHD
Posts: 630
Joined: Fri Mar 20, 2009 8:21 pm UTC
Location: Denmark

Re: Editors

Postby MHD » Thu Apr 30, 2009 8:46 pm UTC

SciTE > All
EvanED wrote:be aware that when most people say "regular expression" they really mean "something that is almost, but not quite, entirely unlike a regular expression"

User avatar
Jengajam2
Posts: 26
Joined: Thu Dec 18, 2008 2:55 am UTC

Re: Editors

Postby Jengajam2 » Sat May 23, 2009 6:28 pm UTC

I use nano when I am in command line on my slackware box, Gedit on my ubunu laptop, and Geany whenever I'm trying to learn Python.
Image

User avatar
enk
Posts: 754
Joined: Mon Sep 10, 2007 12:20 am UTC
Location: Aalborg, Denmark
Contact:

Re: Editors

Postby enk » Mon May 25, 2009 10:42 am UTC

SJ Zero wrote:since I've got to learn it anyway, why not just use vi?


I enjoy the ubiquitousness of vi as well, but it has more qualities than the ubiquitousness!


Edit: Let's do a fundraising so hotaru can get a computer fast enough to run vim :P
phlip wrote:Ha HA! Recycled emacs jokes.

User avatar
hotaru
Posts: 1025
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Editors

Postby hotaru » Mon May 25, 2009 5:23 pm UTC

enk wrote:Edit: Let's do a fundraising so hotaru can get a computer fast enough to run vim :P

i have several computers fast enough to run it, i just prefer not to have to sit and wait for a quarter of a second for my editor to start. it's not a lot of time but it's enough to break my rhythm when i'm working on 3 or 4 things at once :P

Code: Select all

factorial product enumFromTo 1
isPrime n 
factorial (1) `mod== 1

phider2
Posts: 71
Joined: Sun May 24, 2009 10:52 pm UTC

Re: Editors

Postby phider2 » Tue May 26, 2009 2:41 am UTC

I use nano, because it works fine and I'm too lazy to learn emacs or vi(m).

User avatar
InkL0sed
Posts: 205
Joined: Wed Sep 10, 2008 3:46 am UTC

Re: Editors

Postby InkL0sed » Sun May 31, 2009 9:00 pm UTC

Xcode :D

stephentyrone
Posts: 778
Joined: Mon Aug 11, 2008 10:58 pm UTC
Location: Palo Alto, CA

Re: Editors

Postby stephentyrone » Mon Jun 01, 2009 1:36 am UTC

InkL0sed wrote:Xcode :D


XCode with vi keybindings.
GENERATION -16 + 31i: The first time you see this, copy it into your sig on any forum. Square it, and then add i to the generation.

User avatar
Troy Martin
Posts: 44
Joined: Fri Nov 28, 2008 4:08 am UTC
Location: Langley, BC, Canada
Contact:

Re: Editors

Postby Troy Martin » Sat Jul 04, 2009 5:15 pm UTC

GEdit on Xubuntu. *ducksandruns*

Stable, lightweight, highlighting, and generally out of the way of most major editor wars.
Howdy.

null1024
Posts: 38
Joined: Fri Jun 05, 2009 10:20 am UTC
Location: About 4.91E11 feet from the sun.
Contact:

Re: Editors

Postby null1024 » Sat Jul 04, 2009 10:22 pm UTC

On the *nices:
Vi is my favorite, then Pico/Nano. I'm crippled on Emacs, at that point I just do an "echo /dev/tty > file.txt" to try to do anything.

On Windows:
EDIT.COM [it's mislabeled, it's really an EXE], the one that's come with every Windows version since 95 [all other versions suck, especially the FreeDOS one, I gave up there, and installed Vi]. Customizable colors, no need to hit the spacebar, ever, and it's a console app. What more could you want? And for doing ASCII art? Amazing. Move the cursor where you want, click there even! It's amazing.

And then maybe Notepad/Metapad. I like ConTEXT as well, but it's too bulky.
Image

User avatar
enk
Posts: 754
Joined: Mon Sep 10, 2007 12:20 am UTC
Location: Aalborg, Denmark
Contact:

Re: Editors

Postby enk » Sun Jul 05, 2009 3:33 pm UTC

null1024 wrote:On the *nices:
Vi is my favorite, then Pico/Nano. I'm crippled on Emacs, at that point I just do an "echo /dev/tty > file.txt" to try to do anything.


If you by "vi" mean "vim": Why not run it on Windows as well? What's this idea people have that vim (and emacs as well) are just for *nix?
(if you really mean vi, check out vim...)

null1024 wrote:no need to hit the spacebar, ever


Huh?

null1024 wrote:And then maybe Notepad/Metapad.

Metapad >> Notepad.
phlip wrote:Ha HA! Recycled emacs jokes.


Return to “Religious Wars”

Who is online

Users browsing this forum: No registered users and 4 guests