[ overboard / sfw / alt / cytube] [ leftypol / b / WRK / hobby / tech / edu / ga / ent / music / 777 / posad / i / a / R9K / dead ] [ meta ]

/tech/ - Technology

"Technology reveals the active relation of man to nature"
Name
Email
Subject
Comment
Captcha
Tor Only

Flag
File
Embed
Password (For file deletion.)

Matrix   IRC Chat   Mumble   Telegram   Discord


File: 1620954221727.jpg ( 38.21 KB , 400x500 , 8f30a118bfe78df8b04e1d6248….jpg )

 No.8464

Explain.
>>

 No.8465

Nano - it just werks
>>

 No.8468

Just use the program that works for you
:wq
>>

 No.8470

Emacs. You mold the editor to yourself, not the other way around like in vim. Also it was designed to be extensible from the start.
>>

 No.8471

Learn neovim then migrate to emacs with evil-mode.

Vims bindings are superior for editing, but emacs is superior for extensions. This way, you get the best of two worlds.
>>

 No.8472

sed
>>

 No.8473

ed, man! !man ed

ed is the standard text editor.
>>

 No.8528

>>8473
From: [email protected] (Patrick J. LoPresti)
Subject: The True Path (long)
Date: 11 Jul 91 03:17:31 GMT
Newsgroups: alt.religion.emacs,alt.slack

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
-rwxr-xr-t 4 root 1310720 Jan 1 1970 /usr/ucb/vi
-rwxr-xr-x 1 root 5.89824e37 Oct 22 1990 /usr/bin/emacs

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!!!

?
>>

 No.8558

I use neovim because I don't need too much feature outside of modal editing and simple autocomplete and interface to ghicd. At work I use whatever I gets paid to use.

I regret not learning emacs in college tho. It could have been a lifelong journey with steady return. If anyone is just starting out I would recommend emacs over vim just for pedagogical concerns
>>

 No.8570

Emacs is objectively more powerful. Which is why if you're a student, programmer, researcher, basically anything that isn't just editing the sudoers file, you should probably invest in Emacs. Vim however has a brilliant and universal navigation system, hjkl, so use evil mode in emacs and you will never be caught off guard without a comfy editing space.
>>

 No.8571

>>8570
> invest in Emacs
no thx I'm not a capitalist
>>

 No.8603

File: 1621391916313.png ( 48.58 KB , 700x157 , communism_1984.png )

>>

 No.8614

>>8603
Is that vimscript?
It looks like programming in a config file syntax.
>>

 No.8615

>>8614
It looks like a failed attempt at Python
>>

 No.8643

OP here, ive been using vim for the past couple days now and I gotta say the navigation shortcuts and not having to touch the mouse has been quite nice. Eventually I will try Emacs evil mode but right now I want to get used to navigation.
>>8603
>>8614
>>8615
1984 moment
>>

 No.8879

>>8603
Kek
Is this a banner? This should be a banner
>>

 No.8880

>>8643
Based
Try incorporate these bindings into your muscle memory today: A, I, gg, G, gd
>>

 No.8884

>>8880
Also remember you can do global substitution (when you're not using busybox vi atm).
Make every auto function definition static const:
g/^[a-zA-z]/s/^([A-Za-z1-9]+ )?[A-Za-z1-9]+\([^\)]+\) ?{?/static const &/
>>

 No.8885

>>8884
*The last two patterns are unnecessary, unless you want to add an EOL($).
>>

 No.8886

>>8880
> A, I, gg, G, gd
This is some kabbalist secret code, don't deny it.
>>

 No.8903

File: 1622528650601.png ( 63.77 KB , 800x184 , communism().png )

OP back again, thanks >>8880 for the bindings, ive been able to speed up my scripting as well as have an overall better quality of life.

>>8879
this should be a banner.
>>

 No.8955

>>8903
Made the banner, >>>/leftypol/294250 (with a extra shebang line)
>>

 No.8961

>>8471
this is the correct take

Unique IPs: 14

[Return][Catalog][Top][Home][Post a Reply]
Delete Post [ ]
[ overboard / sfw / alt / cytube] [ leftypol / b / WRK / hobby / tech / edu / ga / ent / music / 777 / posad / i / a / R9K / dead ] [ meta ]
ReturnCatalogTopBottomHome