User avatar
RaTTuS
Posts: 10459
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

The Holy war of editors

Tue Aug 30, 2016 8:45 am

How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

blaablaaguy
Posts: 623
Joined: Sun Sep 27, 2015 3:26 pm

Re: The Holy war of editors

Tue Aug 30, 2016 11:11 am

RaTTuS wrote:http://cube-drone.com/comics/c/holy-war

personally I use vi
But... I liked nano. I haven't tried any of the others though so maybe im not a phsycopath.
This signature intentionally left blank.

Heater
Posts: 13335
Joined: Tue Jul 17, 2012 3:02 pm

Re: The Holy war of editors

Tue Aug 30, 2016 11:12 am

uh-oh.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5964
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: The Holy war of editors

Tue Aug 30, 2016 11:36 am

Since it's not 1970s, I use Geany.

User avatar
DougieLawson
Posts: 36130
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: The Holy war of editors

Tue Aug 30, 2016 11:42 am

Anything except nano or emacs works for me.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Heater
Posts: 13335
Joined: Tue Jul 17, 2012 3:02 pm

Re: The Holy war of editors

Tue Aug 30, 2016 11:51 am

After a life long aversion to anything Microsoft a strange thing happened...

I started using MS Visual Studo Code: https://code.visualstudio.com/b?utm_exp ... ogle.fi%2F

VS Code is open source and cross platform. Runs on Linux, Mac and even on the Raspi 3.

For editing Javascript it's brilliant. Once you have the Eslint plugin. It integrates with git nicely. Haven't really tried it out for C/C++ or other languages yet but I suspect its cool there as well.

User avatar
flatmax
Posts: 336
Joined: Thu May 26, 2016 10:36 pm

Re: The Holy war of editors

Tue Aug 30, 2016 12:27 pm

Vim till I get emacs installed :!:
Check the Ultra 2 sound card - use our shop instead of Amazon Europe (Amazon USA is live).
Sound card for the Raspberry Pi with inbuilt microphone : www.audioinjector.net
Audio Inector Octo multitrack GPIO sound card

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23680
Joined: Sat Jul 30, 2011 7:41 pm

Re: The Holy war of editors

Tue Aug 30, 2016 12:42 pm

flatmax wrote:Vim till I get emacs installed :!:
emacs until I get anything else ever in the whole universe installed.

(actually, if the choice is emacs or scribing bits in the RAM with a pointed stick, I'd still go with the stick)
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
PeterO
Posts: 5018
Joined: Sun Jul 22, 2012 4:14 pm

Re: The Holy war of editors

Tue Aug 30, 2016 12:56 pm

Emacs for editing of source code. I used to run Wordstar on my old CP/M 2.2 Z80 machine, so I'm used to strange key press sequences :-)
Vi(m) for config files etc.

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

blaablaaguy
Posts: 623
Joined: Sun Sep 27, 2015 3:26 pm

Re: The Holy war of editors

Tue Aug 30, 2016 3:19 pm

Meh, these things are from the stone age. I use atom.

https://atom.io/
This signature intentionally left blank.

W. H. Heydt
Posts: 10886
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: The Holy war of editors

Tue Aug 30, 2016 3:40 pm

I stick with vi and have been using it since the 1970s.

User avatar
DavidS
Posts: 4334
Joined: Thu Dec 15, 2011 6:39 am
Location: USA
Contact: Website

Re: The Holy war of editors

Tue Aug 30, 2016 4:09 pm

Kool:

And here I always thought that the war of editors was more of a RISC OS thing (mostley !StrongED, !Zap). The war never seems to have made it to the Atari world :) .

It is good to see that there is some competition of editors in the Unix world :) .
RPi = The best ARM based RISC OS computer around
More than 95% of posts made from RISC OS on RPi 1B/1B+ computers. Most of the rest from RISC OS on RPi 2B/3B/3B+ computers

User avatar
rpdom
Posts: 15200
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: The Holy war of editors

Tue Aug 30, 2016 4:44 pm

On RISCOS I used to use Twin.

On Linux I mostly use Vi for the servers (which don't have X), or Geany/Gedit for editing local files on my laptop.

For some very limited systems I use sed to make changes to files as there are no full editors installed.

W. H. Heydt
Posts: 10886
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: The Holy war of editors

Tue Aug 30, 2016 4:48 pm

DavidS wrote:Kool:

And here I always thought that the war of editors was more of a RISC OS thing (mostley !StrongED, !Zap). The war never seems to have made it to the Atari world :) .

It is good to see that there is some competition of editors in the Unix world :) .
I don't think it's so much a competition as a combination of personal preference and the "baby duck" syndrome (that is: what editor were you exposed to first and got used to). There may also be a Berkeley vs. MIT component as well, since vi was written at UC Berkeley (and later licensed to AT&T who tried--and failed--to write a screen editor of their own) and Stallman's work on emacs at MIT.

blc
Posts: 465
Joined: Mon Sep 05, 2011 9:28 am

Re: The Holy war of editors

Wed Aug 31, 2016 12:34 pm

I remember during my early tinkerings with Linux in the late 90's that the installer for one distro (I don't remember which) had a description for each package you could install (if you chose to edit the package loadout manually). Emacs was described as: "Eight Megabytes Always Constantly Swapping: You either love it or you hate it." I surmised then that this was referring to a high memory usage and I decided that I didn't need a simple text editor which eats up loads of memory; 8MB was a pretty serious chunk of RAM in those days... I never installed it then and never made the effort to even try it in the intervening decade and a half since then.

These days I use nano since I never learned vi commands. At this point I'm not willing to even learn vi; I could probably remember basic commands if I had no other choice, but I don't see the point of contorting myself into UI paradigm that hasn't really moved on in fourty years simply because it makes the GreyBeards happy and comfortable.

If I'm on Windows then it's notepad++ all the way.

W. H. Heydt
Posts: 10886
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: The Holy war of editors

Wed Aug 31, 2016 1:41 pm

I have no desire to try to coerce (in any way) others to use a particular editor. I use vi because (a) I'm used to it, (b) I know enough of it to do any editing tasks that come my way, and (c) it's available on most systems I use. (As was noted above, on Windows I use some version of Notepad, or even LibreOffice, and LibreOffice has the virtue that it can edit a Pi's config.txt while on a Windows system without newline issues.)

User avatar
piglet
Posts: 909
Joined: Sat Aug 27, 2011 1:16 pm

Re: The Holy war of editors

Wed Aug 31, 2016 2:00 pm

blc wrote:If I'm on Windows then it's notepad++ all the way.
Me too - but it truly sucks with very large files. Search and replace all on a big file on a fast i7 with lots of RAM and it grinds to a near halt. Time to get lunch and see if it's finished before you get back.

I have copied large files from Windows to 'nix servers to edit them there before copying back....


On 'nix boxes I hope to find vim aliased as vi.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 12228
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: The Holy war of editors

Wed Aug 31, 2016 2:06 pm

for a new user, one that has not used that editor before, its essential that he does not have to wonder how he can exit the editor, while saving the file, (and do other basic tasks) many editors fail to have that essential feature, and you need training to use them. which makes them less than useful.

also, editors should be "modeless" IMHO.

User avatar
scruss
Posts: 2480
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: The Holy war of editors

Wed Aug 31, 2016 3:46 pm

mahjongg wrote:for a new user, one that has not used that editor before, its essential that he does not have to wonder how he can exit the editor, while saving the file, (and do other basic tasks) many editors fail to have that essential feature, and you need training to use them. which makes them less than useful.
Hence this:
exiting_vim.jpg
Exiting Vim, from @ThePracticalDev
exiting_vim.jpg (26.14 KiB) Viewed 5728 times
(source: @ThePracticalDev, https://twitter.com/ThePracticalDev/sta ... 2219813888 )

I've just found fte, which is a bit like the old MS-DOS 6 “edit” editor (aka the qbasic editor). Install it with

Code: Select all

sudo apt install fte-terminal
It supports mouse cursor movement and menus, even over ssh. Does cut and paste in the way humans might expect to.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5964
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: The Holy war of editors

Wed Aug 31, 2016 3:59 pm

scruss wrote: Hence this:
exiting_vim.jpg
(source: @ThePracticalDev, https://twitter.com/ThePracticalDev/sta ... 2219813888 )
I thought that's what the power button was for.

Heater
Posts: 13335
Joined: Tue Jul 17, 2012 3:02 pm

Re: The Holy war of editors

Wed Aug 31, 2016 4:00 pm

Ha, "Exiting Vim", I love it.

Strange thing happened today. ":q!" did not work. I hit ":" and I see a ":". Then I hit "q". The ":" goes away. Nothing happens. It did this many times. I was about to kill the terminal to get out of there but it eventually responded.

Never seen that happen before.

Anyway if getting out of vim is too hard one can always use Cream. A GUI wrapper around Vim: http://cream.sourceforge.net/features.html

Sadly not updated for many years.

W. H. Heydt
Posts: 10886
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: The Holy war of editors

Wed Aug 31, 2016 4:14 pm

While people have to be told, there really shouldn't be any mystery or dificulty to remembering ":wq". But, then, it does help to understand two things about vi. The first being that it is "dual mode" (you are either in command mode or append mode). The second is that it has a "lower level" that is actually a line editor, which is what is used when things like search and replace are done. Anything that needs an initial colon is a line editor command. I just can't remember whether line editor is ex or ed.

I will grant that doing ":g/<string>//s/<other string>/g" would be a little obscure for a beginner, though.

This does bring up another anecdote, though. My wife once wrote an "intro to unix" doc for the office she was working in (Institute for Urban and Regional Development at UC Berkeley). She got a frantic phone call one night from one of the faculty that did research with funding handled through IURD. Turned out, she'd forgotten to include how to log off from unix.

Heater
Posts: 13335
Joined: Tue Jul 17, 2012 3:02 pm

Re: The Holy war of editors

Wed Aug 31, 2016 4:19 pm

You would think that in a world where people communicate with "WTF LOL U RTFM" the vim interface would be a natural. The unix shell commands as well.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23680
Joined: Sat Jul 30, 2011 7:41 pm

Re: The Holy war of editors

Thu Sep 01, 2016 9:04 am

Heater wrote:You would think that in a world where people communicate with "WTF LOL U RTFM" the vim interface would be a natural. The unix shell commands as well.
Good point.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
JAVE
Posts: 36
Joined: Thu Sep 19, 2013 11:08 am

Re: The Holy war of editors

Thu Sep 01, 2016 12:06 pm

I came from the Amiga, where I used Black's editor for a long time (Great Arexx interface for scripting the editor!).
When starting with Linux, I used pico for a while, but that was (is?) part of the mail client Pine. Later they released a standalone version called nano IIRC.

Then a friend spoke some wise words: "All Unix variants come standard with Vi installed. When you're able to use Vi, you don't need to install extra packages to be able to edit texts."

So I learned Vi, and with Vim these days, I'm happy I listened to him :-)

As for Emacs:
1: I don't have enough appendages to hit all those keys at the same time, and
2: I already have an operating system :-)

Return to “Off topic discussion”