Comparison: Linux Text Editors
jrepin writes: Mayank Sharma of Linux Voices tests and compares five text editors for Linux, none of which are named Emacs or Vim. The contenders are Gedit, Kate, Sublime Text, UltraEdit, and jEdit. Why use a fancy text editor? Sharma says, "They can highlight syntax and auto-indent code just as effortlessly as they can spellcheck documents. You can use them to record macros and manage code snippets just as easily as you can copy/paste plain text. Some simple text editors even exceed their design goals thanks to plugins that infuse them with capabilities to rival text-centric apps from other genres. They can take on the duties of a source code editor and even an Integrated Development Environment."
It may not have been wise for me to spend years training vi into my muscle memory, but it's done now, and I'm not especially interested in giving up that advantage.
You can do all of this in Emacs and Nano. No need for some shiny new text editor...
none of which are named Emacs or Vim
What's there to compare? Everything else is just Notepad.
I used to use gedit on Linux a lot a few years ago. I then used OS X for a few years, but I recently moved back to Linux. One of the first things I did after getting Linux installed was try to edit some files using gedit. And my first reaction was: JESUS FUCKING CHRIST, WHAT IN THE FUCKING HELL DID THEY DO TO GEDIT'S UI?!
It used to have a good, traditional UI. There were useful menus and a toolbar, and it all worked very well. But now, JESUS FUCKING CHRIST, it looks stupid as all hell. There are no menus any longer, and the toolbar has been castrated into having like 4 buttons. The icons are pathetic, and don't indicate what the button actually does. Whoever the hell reworked the UI managed to break what was once a very usable text editor. Now it's rubbish.
It's like they took the idiotic UI design of Chrome and brought it over to gedit. And now gedit is useless to me! So I've moved on to Kate. At least the KDE crew hasn't gone completely fucking stupid like the GNOME dipshits apparently have.
Why the fuck did they have to ruin gedit's UI?
Have you seen Gedit lately? Its new user interface is even less usable that vi's is: https://en.wikipedia.org/wiki/Gedit#mediaviewer/File:Gedit_3.11.92.png
The Gnome designers just keep making Gnome's user interface worse and worse to use. I guess that's why so few people use Gnome these days!
Where's geany? It's much better than gedit.
Video of some good progressive thrash music
Sorry if this is stating the obvious, but if you're a programmer who does lots of editing on a few machines, then pick the editor that best fits the job.
However, as an admin, I have long ago standardized on VI for the simple reason that it's included by default on every single *nix variant out there. (At least, in my experience.)
My cunning strategy breaks down with Windows, though. Notepad is so nasty to use that I find myself installing textpad or cygwin on the machines where I do most of my work.
Oliver's law of assumed responsibility: If you're seen fixing it, you will be blamed for breaking it.
( obligatory, credit to: https://www.gnu.org/fun/jokes/... )
When I log into my Xenix system with my 110 baud teletype, both vi and Emacs are just too damn slow. They print useless messages like, ‘C-h for help’ and ‘“foo” File is read only’. So I use the editor that doesn't waste my VALUABLE time.
Ed, man! !man ed
ED(1) Unix Programmer's Manual ED(1)
NAME
ed - text editor
SYNOPSIS
ed [ - ] [ -x ] [ name ]
DESCRIPTION
Ed is the standard text editor.
---
Computer Scientists love ed, not just because it comes first alphabetically, but because it's the standard. Everyone else loves ed because it's ED!
“Ed is the standard text editor.”
And ed doesn't waste space on my Timex Sinclair. Just look:
-rwxr-xr-x 1 root 24 Oct 29 1929 /bin/ed /usr/ucb/vi /usr/bin/emacs
-rwxr-xr-t 4 root 1310720 Jan 1 1970
-rwxr-xr-x 1 root 5.89824e37 Oct 22 1990
Of course, on the system I administrate, vi is symlinked to ed. Emacs has been replaced by a shell script which 1) Generates a syslog message at level LOG_EMERG; 2) reduces the user's disk quota by 100K; and 3) RUNS ED!!!!!!
“Ed is the standard text editor.”
Let's look at a typical novice's session with the mighty ed:
golem$ ed
?
help
?
?
?
quit
?
exit
?
bye
?
hello?
?
eat flaming death
?
^C
?
^C
?
^D
?
---
Note the consistent user interface and error reportage. Ed is generous enough to flag errors, yet prudent enough not to overwhelm the novice with verbosity.
“Ed is the standard text editor.”
Ed, the greatest WYGIWYG editor of all.
ED IS THE TRUE PATH TO NIRVANA! ED HAS BEEN THE CHOICE OF EDUCATED AND IGNORANT ALIKE FOR CENTURIES! ED WILL NOT CORRUPT YOUR PRECIOUS BODILY FLUIDS!! ED IS THE STANDARD TEXT EDITOR! ED MAKES THE SUN SHINE AND THE BIRDS SING AND THE GRASS GREEN!!
When I use an editor, I don't want eight extra KILOBYTES of worthless help screens and cursor positioning code! I just want an EDitor!! Not a “viitor”. Not a “emacsitor”. Those aren't even WORDS!!!! ED! ED! ED IS THE STANDARD!!!
TEXT EDITOR.
When IBM, in its ever-present omnipotence, needed to base their “edlin” on a Unix standard, did they mimic vi? No. Emacs? Surely you jest. They chose the most karmic editor of all. The standard.
Ed is for those who can remember what they are working on. If you are an idiot, you should use Emacs. If you are an Emacs, you should not be vi. If you use ED, you are on THE PATH TO REDEMPTION. THE SO-CALLED “VISUAL” EDITORS HAVE BEEN PLACED HERE BY ED TO TEMPT THE FAITHLESS. DO NOT GIVE IN!!! THE MIGHTY ED HAS SPOKEN!!!
BeauHD. Worst editor since kdawson.
Don't all of these text editors require a GUI? I prefer something which can work with a serial/telnet/(basic ssh) console, without all the unnecessary overhead of a GUI. I like joe (which can reasonably emulate emacs/pico, if you want), but can deal with vi if I have to.
"National Security is the chief cause of national insecurity." - Celine's First Law
http://xkcd.com/378/
Even if you don't personally engage in editor wars, it's pretty funny. I'm afraid that the number of Slashdot articles best answered by an XKCD cartoon has remained surprisingly consistent.
Given that most of the tools in the mentioned article require a GUI to work from, and many of them are destabilized by their use of Java, I'm afraid that the article will remain aimed at GUI and web developers, not "real programmers". We who do real systems recovery or kernel level code development will continue to use "vi" for small tasks, "emacs" when we need full integration with source control systems or more powerful indentation..
Yeah, right, dat steep learning curve. I've wasted years using UltraEdit, because I was told that vim was too hard. One friday afternoon I fired up vimtutor, and it took me the following weekend to learn vim enough to do my work as good as with UltraEdit. From that moment on, I've spent years honing my vim skills, following a very slow but rewarding learning curve.
I've been editing (plain)text for living for the last 15 years, and I doubt I'd ever get as dedicated, thorough and precise in my work without vim. All those self-proclaimed no-learning-curve, get-the-job-done editors are inferior, and one should use them only if they actually need to do some ad-hoc work, which they actually don't even want to do.
Pick a proper tool for your job, not a toy.
http://xkcd.com/378/
sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
I see you're used to Linux boxes with X installed. *BSD doesn't necessarily have X installed and it would be highly unlikely on a firewall box. Also, sshd might not have X11 forwarding turned on.
Not to mention, it's actually nvi not vi or vim.
No, you can teach us old Unix guys new tricks. Vim is a totally acceptable acceptable upgrade to vi. Just like bash is an acceptable upgrade to sh. And perl is definitely better than awk/sed.
We do draw the line at gvim though. And I've heard rumours of a new C like language that is object oriented... haven't tried it though.
You're not supposed to close the windows. They just stay open all the time. (You don't even have to save them, it just keeps them up 'unsaved' the next time you come back. :w does work though, exactly as you'd expect.
--Welcome to the Realm of the Hawke--
I've had to clean up my desktop after an upgrade didn't finish properly and I only had a CLI to work with. Knowing how to use at least one non-GUI text editor and having that editor installed already was a life saver because without it I couldn't have gotten the network up again and without that, I couldn't have installed an editor. Remote admin is one good reason to know how to work without a GUI, but it's not the only one.
Good, inexpensive web hosting
I have a few text files on my Windows box with :wq scattered around in random locations.
-- Will program for bandwidth
My students hated that I made them learn vi. Why? Because if the graphics subsystem failed, or they had to go to single user mode, they had vi.
If they made it through my class alive, they could use whatever they wanted.
My mom says I'm cool.
So, - here's the bottom line. Almost nobody here agrees with the OP premise :-)
Personally I use vim and emacs, they can do everything those editors can, and much more.
Once you get over the learning curve, which I did, there is no reason to try the less capable editors.
There is emacs. There is vi, for when some fool didn't install emacs. There is ex, for when the terminal is messed up. And there is ed, because it is the standard text editor.
Anything else is either redundant, or is a word processor with a text-only output.
Or taken a lot longer to sort it out and then move on to FreeBSD.
Joe seems very intuitive to me and has just enough power as a text editor to give you free range of config files and basic scripting or even a couple hundred lines of Perl. I've always found vi impossible; the command/editing modes never made sense yet Joe seemed to work "like normal."
I made an honest effort to master emacs, but it always seemed like effort and I always went back to Joe when I needed to get something done.
I actually went trolling recently for a win32 text mode version of joe (which I swear I used to have) but couldn't find one.
apt-get? Who uses apt-get? Real men use make, make dep, make install!!!
Okay, y'all can stop mentioning how vi and emacs do everything these do plus come preinstalled on Linux systems. From the article:
Two of most popular and powerful plain text editors are Emacs and Vim. However, we didn’t include them in this group test for a couple of reasons. Firstly, if you are using either, congratulations: you don’t need to switch. Secondly, both of these have a steep learning curve, especially to the GUI-oriented desktop generation who have access to alternatives that are much more inviting.
This is for people moving to a text editor from Word.
And perl is definitely better than awk/sed.
No. People learn perl then think they can program. It just goes wrong.
Areyouserious?Whatlanguagesdoyouwritecodein,whichacceptthat?
"National Security is the chief cause of national insecurity." - Celine's First Law
I have yet to see anyone comment on this...
One advantage of so-called stone-age editors like Emacs and VI is that they don't clutter the screen with useless junk like toolbars, menus, project side panels, etc. I've got Emacs setup on each machine I use such that each pane, running 2 across or 3 across, almost exactly fits the width of the code based on the maximum line length called out in the coding standard we follow (giving a few characters of margin). I want as much code on the screen as possible in as large a font as is reasonable (to reduce eye strain). I also remove as much clutter vertically so that I get as many lines of code on the screen as possible.
I definitely do not want my editor to clutter my screen with menu bars, tool bars, scroll bars, project side panels, cute little multi-line consoles, big status bars, etc. that take valuable space away from the actual code window. I use my editor 8 hours every day, if not more. I know the editor's commands. I use my editor to write code, I want to see the code, not screen wasting cruft.
Some GUI editors, such as JEdit, let you remove some of the clutter; however, I have yet to see any GUI editor let you remove all of the clutter to the extent possible (or default) with Emacs or VI.