ed is the standard text editor.
right now, i am using ed to edit this post!
nvim is based on vim is based on vi is based on ex is based on ed
[...]
reply here if you use ed and would like to talk about it, or if your nam
e is ed!
On 2026-06-08 04:16, Zayd Mohammed wrote:
ed is the standard text editor.
'ed' is _a_ standard text editor; on Unixes. Though a very primitive
one.
In article <1105ae4$1naub$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
On 2026-06-08 04:16, Zayd Mohammed wrote:
ed is the standard text editor.
'ed' is _a_ standard text editor; on Unixes. Though a very primitive
one.
Saying, "`ed` is the standard text editor" on Unix systems is an
old joke.
In article <1106h0l$lb$1@reader1.panix.com>,
Dan Cross <cross@spitfire.i.gajendra.net> wrote:
In article <1105ae4$1naub$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
On 2026-06-08 04:16, Zayd Mohammed wrote:
ed is the standard text editor.
'ed' is _a_ standard text editor; on Unixes. Though a very primitive
one.
Saying, "`ed` is the standard text editor" on Unix systems is an
old joke.
Indeed. And the joke works better if you base it on and sing it to the
tune of "Mr Ed".
In article <1105ae4$1naub$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
On 2026-06-08 04:16, Zayd Mohammed wrote:
ed is the standard text editor.
'ed' is _a_ standard text editor; on Unixes. Though a very primitive
one.
Saying, "`ed` is the standard text editor" on Unix systems is an
old joke.
ed is the standard text editor.
I recall that some versions of the ed(1) man page started with
"ed is the standard text editor".
I recall that some versions of the ed(1) man page started with "ed is
the standard text editor". [...] a web search turns it up as a line
from old man pages.
On 2026-06-08 04:16, Zayd Mohammed wrote:
*SKIP* [ 1 line 1 level deep]right now, i am using ed to edit this post!
Is that the reason why the formatting of your post is corrupt? (Or is
it your newsreader settings?)
'ed' is _a_ standard text editor; on Unixes.
Though a very primitive one.
(I wonder why one would make ones life harder than
necessary.)
Is that the reason why the formatting of your post
is corrupt? (Or is it your newsreader settings?)
Vim is not based on the Vi code base. But
functionally yes, mostly. And you won't gain
anything if trying to somehow relate Vim to
Ed; these are functionally completely different
things.
reply here if you use ed and would like to talk
about it, or if your nam e is ed!
I suggest to talk about editors in comp.editors
(not primarily here).
reply here if you use ed and would like to talk
about it, or if your nam e is ed!
ed is the standard text editor.
right now, i am using ed to edit this post!
Ed made sense when your only way to interact with a system was
through a line printer (such as a DECwriter) ...
Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
writes:
'ed' is _a_ standard text editor; on Unixes.
Though a very primitive one.
It is indeed primitive, in the way a chisel is.
(I wonder why one would make ones life harder than
necessary.)
It is not harder with ed. As a user of ed,
who also used emacs and vim for over a decade,
(and many others) I don't view ed as a lesser tool
that is "behind" "modern" editors, I think ed is a
different mindset for editing, in the same vain as
vim being different from Visual Studio. If a user
of Visual Studio says in relation to learning vim:
"Why make one's life harder than necessary", the
answer would be very similar. It is harder only
because it didn't "click" for you yet.
Is that the reason why the formatting of your post
is corrupt? (Or is it your newsreader settings?)
Unlikely. I'm also writing this in ed, and
I don't think my formatting will be corrupt :)
Vim is not based on the Vi code base. But
functionally yes, mostly. And you won't gain
anything if trying to somehow relate Vim to
Ed; these are functionally completely different
things.
Vim, perhaps not. As the culture around vim
is no longer similar at all to what ed was.
People installing a 120 plugins to turn their vim
into an IDE is exactly not what ed is. But, the
original vi editors, I would say they were very
close to ed indeed. Screen editing is a big
difference of course, but with vi, you were still
meant to integrate your editor into the rest of
your UNIX environment using the vi command mode,
you don't install a plugin to wrap lines in vim,
but you pass the text to fmt from vi. With ed, it
is a very similar approach. The power of ed is
that it is open to the rest of UNIX, and through
that integration, you gain great productivity.
reply here if you use ed and would like to talk
about it, or if your nam e is ed!
I suggest to talk about editors in comp.editors
(not primarily here).
Perhaps, better yes. But if one editor is
worthy of being discussed in comp.unix.shell, it's
ed, because ed is almost completely useless if not
for the shell. I spell check in ed by calling to
a shell program !aspell %, I format the post by
doing the same !par, when I want a calendar in my
task file I !cal, etc. etc. Personally, I think
ed is the only editor that follows the UNIX
philosophy closely, it applies edits to text, and
it does so very well.
When I want to edit text, ed is my shell.
Lumin Etherlight <lumin+usenet@etherlight.link> writes:
Perhaps, better yes. But if one editor is
worthy of being discussed in comp.unix.shell, it's
ed, because ed is almost completely useless if not
for the shell. I spell check in ed by calling to
a shell program !aspell %, I format the post by
doing the same !par, when I want a calendar in my
task file I !cal, etc. etc. Personally, I think
ed is the only editor that follows the UNIX
philosophy closely, it applies edits to text, and
it does so very well.
When I want to edit text, ed is my shell.
I love the way your text is formatted. Lumin, how have you formatted
the text above? :-) .
I do use GNU Emacs, and I think you made a good argument for 'ed' in me.
If anyone here know how to format like the text above, but in GNU Emacs,
I would like to know how.
In article <1105ae4$1naub$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
On 2026-06-08 04:16, Zayd Mohammed wrote:
ed is the standard text editor.
'ed' is _a_ standard text editor; on Unixes. Though a very primitive
one.
Saying, "`ed` is the standard text editor" on Unix systems is an
old joke.
- Dan C.
cross@spitfire.i.gajendra.net (Dan Cross) writes:
In article <1105ae4$1naub$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
On 2026-06-08 04:16, Zayd Mohammed wrote:
ed is the standard text editor.
'ed' is _a_ standard text editor; on Unixes. Though a very primitive
one.
Saying, "`ed` is the standard text editor" on Unix systems is an
old joke.
I recall that some versions of the ed(1) man page started with
"ed is the standard text editor".
I can't find that line on any system I have access to, or anywhere
in the history of GNU ed (which is of course not the original ed),
but a web search turns it up as a line from old man pages.
The current GNU ed man page says:
Ed is the rCOstandardrCO text editor in the sense that it is the
original editor for Unix, and thus widely available. For most
purposes, however, it is superseded by full-screen editors.
which is an implicit reference to the old wording.
Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
writes:
'ed' is _a_ standard text editor; on Unixes.
Though a very primitive one.
It is indeed primitive, in the way a chisel is.
(I wonder why one would make ones life harder than
necessary.)
It is not harder with ed. As a user of ed,
who also used emacs and vim for over a decade,
(and many others) I don't view ed as a lesser tool
that is "behind" "modern" editors, I think ed is a
different mindset for editing, in the same vain as
vim being different from Visual Studio. If a user
of Visual Studio says in relation to learning vim:
"Why make one's life harder than necessary", the
answer would be very similar. It is harder only
because it didn't "click" for you yet.
Is that the reason why the formatting of your post
is corrupt? (Or is it your newsreader settings?)
Unlikely. I'm also writing this in ed, and
I don't think my formatting will be corrupt :)
Vim is not based on the Vi code base. But
functionally yes, mostly. And you won't gain
anything if trying to somehow relate Vim to
Ed; these are functionally completely different
things.
Vim, perhaps not. As the culture around vim
is no longer similar at all to what ed was.
People installing a 120 plugins to turn their vim
into an IDE is exactly not what ed is.
But, the
original vi editors, I would say they were very
close to ed indeed.
Screen editing is a big
difference of course, but with vi, you were still
meant to integrate your editor into the rest of
your UNIX environment using the vi command mode,
you don't install a plugin to wrap lines in vim,
but you pass the text to fmt from vi.
With ed, it
is a very similar approach. The power of ed is
that it is open to the rest of UNIX, and through
that integration, you gain great productivity.
[...]
When I want to edit text, ed is my shell.
Zayd Mohammed <zaydm@172.24.208.1> wrote:
ed is the standard text editor.
Ed made sense when your only way to interact with a system
was through a line printer (such as a DECwriter), but when
terminals with a screen and a cursor were invented, it was
rapidly supplanted by more usable editors.
Daniel Cerqueira <dan.list@lispclub.com> writes:
Lumin Etherlight <lumin+usenet@etherlight.link> writes:
Perhaps, better yes. But if one editor is
worthy of being discussed in comp.unix.shell, it's
ed, because ed is almost completely useless if not
for the shell. I spell check in ed by calling to
a shell program !aspell %, I format the post by
doing the same !par, when I want a calendar in my
task file I !cal, etc. etc. Personally, I think
ed is the only editor that follows the UNIX
philosophy closely, it applies edits to text, and
it does so very well.
When I want to edit text, ed is my shell.
I love the way your text is formatted. Lumin, how have you formatted
the text above? :-) .
I do use GNU Emacs, and I think you made a good argument for 'ed' in me.
If anyone here know how to format like the text above, but in GNU Emacs,
I would like to know how.
Daniel wrote that he uses a program called "par" to format his texts.
You should be able to use it in emacs, too. Just mark your text and
type
C-u M-| par <ENTER>
assumed "par" is installed on your system.
The bound emacs command is `shell-command-on-region=C2=B4 for further information.
<snip>
Ed made sense when your only way to interact with a system
was through a line printer (such as a DECwriter), but when
terminals with a screen and a cursor were invented, it was
rapidly supplanted by more usable editors.
There is one use for ed(1), when I boot NetBSD into single
user mode, ed(1) is the only one available without jumping
through hoops. To use it I just need to mount /tmp or / as
rw.
Not sure if that is the case with the Other BSDs.
<snip>
Daniel Cerqueira <dan.list@lispclub.com> writes:
Lumin Etherlight <lumin+usenet@etherlight.link> writes:
Perhaps, better yes. But if one editor is
worthy of being discussed in comp.unix.shell, it's
ed, because ed is almost completely useless if not
for the shell. I spell check in ed by calling to
a shell program !aspell %, I format the post by
doing the same !par, when I want a calendar in my
task file I !cal, etc. etc. Personally, I think
ed is the only editor that follows the UNIX
philosophy closely, it applies edits to text, and
it does so very well.
When I want to edit text, ed is my shell.
I love the way your text is formatted. Lumin, how have you formatted
the text above? :-) .
I do use GNU Emacs, and I think you made a good argument for 'ed' in me.
If anyone here know how to format like the text above, but in GNU Emacs,
I would like to know how.
Daniel wrote that he uses a program called "par" to format his texts.
You should be able to use it in emacs, too. Just mark your text and
type
C-u M-| par <ENTER>
assumed "par" is installed on your system.
The bound emacs command is `shell-command-on-region-| for further information.
But thanks for the hints to the joke; it wasn't obvious to me. And I certainly thought that above statement, if anything, was just a part
of a more complete joke concerning editors; along the line that 'cat'
is the standard editor to create text. So 'ed' is probably overkill.
There is one use for ed(1), when I boot NetBSD into single
user mode, ed(1) is the only one available without jumping
through hoops. To use it I just need to mount /tmp or / as
rw.
Not sure if that is the case with the Other BSDs.
There is one use for ed(1), when I boot NetBSD into single user
mode, ed(1) is the only one available without jumping through hoops.
The OpenBSD installer is a ksh script running in a very limited
environment on a ramdisk. The only editor there is ed and you can
use it to debug or directly modify the installer. Been there, done
that.
Zayd Mohammed <zaydm@172.24.208.1> wrote:
ed is the standard text editor.
Ed made sense when your only way to interact with a system
was through a line printer (such as a DECwriter), but when
terminals with a screen and a cursor were invented, it was
rapidly supplanted by more usable editors.
On Tue, 9 Jun 2026 19:44:19 -0000 (UTC), John McCue wrote:
There is one use for ed(1), when I boot NetBSD into single user
mode, ed(1) is the only one available without jumping through hoops.
Why is that? Is it because NetBSD still has the legacy root-versus-usr separation of executables and libraries?
Lawrence D?Oliveiro <ldo@nz.invalid> wrote:
On Tue, 9 Jun 2026 19:44:19 -0000 (UTC), John McCue wrote:
There is one use for ed(1), when I boot NetBSD into single user
mode, ed(1) is the only one available without jumping through hoops.
Why is that? Is it because NetBSD still has the legacy root-versus-usr
separation of executables and libraries?
From what I have seen, seems Linux does not have a real single
user mode. But I think that is OK for Linux.
NetBSD and the other BSDs have real single user mode where no
file systems are mounted, no daemons are started and root is
mounted RO. NetBSD boots into /bin/sh or a shell of your
choice and you work from that, no login needed. Also I think
only static executables are available for use.
I do not know what "legacy root-versus-usr" means, I would
never want a system that does not have a clear separation
between root and users.
Lawrence D?Oliveiro <ldo@nz.invalid> wrote:
On Tue, 9 Jun 2026 19:44:19 -0000 (UTC), John McCue wrote:
There is one use for ed(1), when I boot NetBSD into single user
mode, ed(1) is the only one available without jumping through hoops.
Why is that? Is it because NetBSD still has the legacy root-versus-usr
separation of executables and libraries?
From what I have seen, seems Linux does not have a real single
user mode. But I think that is OK for Linux.
NetBSD and the other BSDs have real single user mode where no
file systems are mounted, no daemons are started and root is
mounted RO. NetBSD boots into /bin/sh or a shell of your
choice and you work from that, no login needed. Also I think
only static executables are available for use.
I do not know what "legacy root-versus-usr" means, I would
never want a system that does not have a clear separation
between root and users.
John McCue <jmclnx@gmail.com.invalid> writes:[...]
I do not know what "legacy root-versus-usr" means, I would
never want a system that does not have a clear separation
between root and users.
That's not what it means.
John McCue <jmclnx@gmail.com.invalid> writes:
Lawrence D?Oliveiro <ldo@nz.invalid> wrote:
On Tue, 9 Jun 2026 19:44:19 -0000 (UTC), John McCue wrote:
There is one use for ed(1), when I boot NetBSD into single user
mode, ed(1) is the only one available without jumping through hoops.
Why is that? Is it because NetBSD still has the legacy root-versus-usr
separation of executables and libraries?
From what I have seen, seems Linux does not have a real single
user mode. But I think that is OK for Linux.
NetBSD and the other BSDs have real single user mode where no
file systems are mounted, no daemons are started and root is
mounted RO. NetBSD boots into /bin/sh or a shell of your
choice and you work from that, no login needed. Also I think
only static executables are available for use.
I do not know what "legacy root-versus-usr" means, I would
never want a system that does not have a clear separation
between root and users.
That's not what it means.
Historically, /bin and /usr/bin were two different directories,
with /bin containing only executables that are needed during
system startup. /usr/bin can be on a separate filesystem that isn't >initially mounted. I think /usr was also where home directories were >located; for example, Dennis Ritchie's home directory was /usr/dmr.
I think the origin of that is an early PDP-11 or PDP-7 system at
Bell Labs that had limited space on its main hard drive a larger
secondary drive.
NetBSD 10.1, the latest release, retains that distinction. I have
it running in a VM, and it has 39 files in /bin and 515 in /usr/bin.
All the executables are dynamically linked, but I think they
depend on on libraries in /lib, not /usr/lib. /bin and /usr/bin
are on the same filesystem (though I think it can be configured
with /usr in its own filesystem).
Many other Unix-like systems have transitioned to making /bin a
symbolic link to /usr/bin. But remnants of the old layout still
exist; for example /usr/bin and /bin are typically both in $PATH
even if they're the same directory.
Similar things apply to /lib and /usr/bin, and to /sbin and
/usr/sbin.
Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
Historically, /bin and /usr/bin were two different directories,Yup. I usually just make one big filesystem on most machines.
with /bin containing only executables that are needed during
system startup. /usr/bin can be on a separate filesystem that isn't
initially mounted. I think /usr was also where home directories were
located; for example, Dennis Ritchie's home directory was /usr/dmr.
There isn't much reason to split them up anymore.
Lawrence D?Oliveiro <ldo@nz.invalid> wrote:
On Tue, 9 Jun 2026 19:44:19 -0000 (UTC), John McCue wrote:
There is one use for ed(1), when I boot NetBSD into single user
mode, ed(1) is the only one available without jumping through hoops.
Why is that? Is it because NetBSD still has the legacy root-versus-usr
separation of executables and libraries?
From what I have seen, seems Linux does not have a real single
user mode. But I think that is OK for Linux.
NetBSD and the other BSDs have real single user mode where no
file systems are mounted, no daemons are started and root is
mounted RO. NetBSD boots into /bin/sh or a shell of your
choice and you work from that, no login needed. Also I think
only static executables are available for use.
I do not know what "legacy root-versus-usr" means, I would
never want a system that does not have a clear separation
between root and users.
On Wed, 10 Jun 2026 00:38:51 -0000 (UTC), Lawrence DrCOOliveiro wrote:
On Tue, 9 Jun 2026 19:44:19 -0000 (UTC), John McCue wrote:
There is one use for ed(1), when I boot NetBSD into single user
mode, ed(1) is the only one available without jumping through
hoops.
Why is that? Is it because NetBSD still has the legacy
root-versus-usr separation of executables and libraries?
From what I have seen, seems Linux does not have a real single user
mode.
NetBSD and the other BSDs have real single user mode where no file
systems are mounted, no daemons are started and root is mounted RO.
NetBSD boots into /bin/sh or a shell of your choice and you work
from that, no login needed. Also I think only static executables are available for use.
I do not know what "legacy root-versus-usr" means, I would never
want a system that does not have a clear separation between root and
users.
Another factor for those old space limited systems was you probably
wanted everything in /bin to be statically linked ...
In comp.unix.shell, Dan Cross <cross@spitfire.i.gajendra.net> wrote:
Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
Historically, /bin and /usr/bin were two different directories,Yup. I usually just make one big filesystem on most machines.
with /bin containing only executables that are needed during
system startup. /usr/bin can be on a separate filesystem that isn't
initially mounted. I think /usr was also where home directories were
located; for example, Dennis Ritchie's home directory was /usr/dmr.
There isn't much reason to split them up anymore.
I've worked with systems where /usr was a NFS filesystem.
You had to get
the system booted and on the network before you got /usr/bin. Another
factor for those old space limited systems was you probably wanted
everything in /bin to be statically linked while the /usb/bin stuff
could afford to rely on dynamic libraries, again possibly existing on >filesystems not mounted at boot or even not available until networking
is up.
These days you probably turn to busybox or the like when you need all >statically linked utilities.
In article <eli$2606102012@qaz.wtf>,[...]
When Solaris 2 came along, essentially everything was
dynamically linked; statically linked binaries went into /sbin,
and my sense at the time was that 's' stood for 'static' (or
possibly 'standalone'). Nowadays, that is mostly system
utilities, whether statically linked or not, and so the meaning
has shifted again.
Oh, do you mean initlevel "S" or "s"? As in:
si:S:sysinit:/etc/rc.d/rc.S
su:1S:wait:/etc/rc.d/rc.K
20:21:14 $ head /etc/rc.d/rc.S<snip>
#!/bin/sh
#
# /etc/rc.d/rc.S: System initialization script.
#
# Mostly written by: Patrick J. Volkerding, <volkerdi@slackware.com>
Like Slackware??
I do not know what "legacy root-versus-usr" means, I would
never want a system that does not have a clear separation
between root and users.
Agreed.
Although the OP might have meant the current (IMHO aberrant) trend
of dispensing with the /bin vs /usr/bin (etc) dichotomy.
John McCue <jmclnx@gmail.com.invalid> writes:<snip>
I do not know what "legacy root-versus-usr" means, I would
never want a system that does not have a clear separation
between root and users.
That's not what it means.
Historically, /bin and /usr/bin were two different directories,
NetBSD 10.1, the latest release, retains that distinction. I have
it running in a VM, and it has 39 files in /bin and 515 in /usr/bin.
All the executables are dynamically linked, but I think they
depend on on libraries in /lib, not /usr/lib. /bin and /usr/bin
are on the same filesystem (though I think it can be configured
with /usr in its own filesystem).
Many other Unix-like systems have transitioned to making /bin a
symbolic link to /usr/bin. But remnants of the old layout still
exist; for example /usr/bin and /bin are typically both in $PATH
even if they're the same directory.
Similar things apply to /lib and /usr/bin, and to /sbin and
/usr/sbin.
I believe that the name "sbin" long predates Solaris 2.
On 2026-06-10 01:29, Keith Thompson wrote:[...]
The par program by default does not format text the way
Lumin Etherlight does. They might be using par with options.
"par -j" formats paragraphs by inserting spaces so the text is
right-justified. "par -j -w50" does the same, but with 50-character
lines. I don't see an option to insert two leading spaces on
each line.
(I'm a bit astonished that Vim doesn't natively support that. -
Or does it, and I just don't know about it?)
Personally, I find Lumin's formatting distracting. For fixed-width
characters, right-justifying text by inserting blanks makes the text
more difficult to read, IMHO with no real benefit. (It tends to work
better with variable-width fonts.) Leading spaces typically denote
quoted text; adding using them on original text is unconventional,
and therefore distracting. 50 or 52 columns is much narrower than
most articles, which I also find distracting. (I use 70 or so,
typically via "fmt -w 70" or the equivalant "fmt -70".)
Lumin's formatting is clever. Clever is not always good.
I agree with most of what you say. And especially concerning the right-alignment with spurious spaces. (The indent I think is only
mildly annoying; usually you can identify the indent-level by the
number of '>'.) Narrower line-lengths (50-76) is okay for me; I
find the (widespread!) use of using no line-length limits at all
to be the much more annoying formatting habit.
When I boot Slackware single user, an extremely rare occurrence, I
can see whit I think are many kernel items executing in background
plus files systems are mounted. On NetBSD, nothing is running in
background and only / is mounted RO. But for Linux that is not a
major deal, just different. That is why said "BSD has a real single
user mode".
On 2026-06-10 12:03, Nuno Silva wrote:
On 2026-06-09, Koen Martens wrote:
Zayd Mohammed <zaydm@172.24.208.1> wrote:
ed is the standard text editor.
Ed made sense when your only way to interact with a system
was through a line printer (such as a DECwriter), but when
terminals with a screen and a cursor were invented, it was
rapidly supplanted by more usable editors.
ed *is* usable, let's stop this "there are bigger/different programs
available so it has no use now" nonsense, shall we?
If we're going to put ed in that bag, sed should go there too, I
guess. After all, some such "more usable editors" can "replace" sed...
(And if you claim sed is different because it can be used in
automation... can't ed be used that way too?)
This all reminds me the "If all I have is a hammer..." allegory.
Yes, with 'sed' or 'vi' I'm doing different things than with 'ex'
(or 'ed').
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
On 2026-06-10 01:29, Keith Thompson wrote:[...]
The par program by default does not format text the way
Lumin Etherlight does. They might be using par with options.
"par -j" formats paragraphs by inserting spaces so the text is
right-justified. "par -j -w50" does the same, but with 50-character
lines. I don't see an option to insert two leading spaces on
each line.
(I'm a bit astonished that Vim doesn't natively support that. -
Or does it, and I just don't know about it?)
It does, and I didn't know about it either. "gq" followed by a
motion command formats text, possibly using a configured external
program. ":help gq" in vim for more information. (I've been using
key mappings to invoke "fmt" since before I'd even heard of vim.)
[...]
On 2026-06-11 22:40, Keith Thompson wrote:
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
On 2026-06-10 01:29, Keith Thompson wrote:[...]
It does, and I didn't know about it either. "gq" followed by aThe par program by default does not format text the way
Lumin Etherlight does. They might be using par with options.
"par -j" formats paragraphs by inserting spaces so the text is
right-justified. "par -j -w50" does the same, but with 50-character
lines. I don't see an option to insert two leading spaces on
each line.
(I'm a bit astonished that Vim doesn't natively support that. -
Or does it, and I just don't know about it?)
motion command formats text, possibly using a configured external
program. ":help gq" in vim for more information. (I've been using
key mappings to invoke "fmt" since before I'd even heard of vim.)
Oh, I obviously was unclear. - I had been talking about the
left-and-right block-alignment; the format we saw in Lumin's post.
'fmt' does *not* support that functionality. But 'par' *does*.
Both can be used from within Vi or Vim with its _external filter_
interface. But both are not *natively* supported in Vi. And 'gq'
in Vim supports *native* formatting like 'fmt', but not like 'par'.
You can also configure external commands. But my question was about
a "native" support; because I like editing functions independent
of environmental support, and I don't like plugins (which would be
another options for those who think plugins are a good idea).
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
On 2026-06-11 22:40, Keith Thompson wrote:
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
On 2026-06-10 01:29, Keith Thompson wrote:[...]
It does, and I didn't know about it either. "gq" followed by aThe par program by default does not format text the way
Lumin Etherlight does. They might be using par with options.
"par -j" formats paragraphs by inserting spaces so the text is
right-justified. "par -j -w50" does the same, but with 50-character
lines. I don't see an option to insert two leading spaces on
each line.
(I'm a bit astonished that Vim doesn't natively support that. -
Or does it, and I just don't know about it?)
motion command formats text, possibly using a configured external
program. ":help gq" in vim for more information. (I've been using
key mappings to invoke "fmt" since before I'd even heard of vim.)
Oh, I obviously was unclear. - I had been talking about the
left-and-right block-alignment; the format we saw in Lumin's post.
'fmt' does *not* support that functionality. But 'par' *does*.
No I don't think you were unclear. I use "fmt" rather than
"par" because (a) "par" probably didn't exist when I started
using "fmt" (and I'm not sure "vim" did), and (b) I don't *want* left-and-right-justified text. I'm now aware that vim has a built-in
feature for formatting paragraphs, but as Darth Vader would say,
"The intertia is strong with this one".
Both can be used from within Vi or Vim with its _external filter_
interface. But both are not *natively* supported in Vi. And 'gq'
in Vim supports *native* formatting like 'fmt', but not like 'par'.
You can also configure external commands. But my question was about
a "native" support; because I like editing functions independent
of environmental support, and I don't like plugins (which would be
another options for those who think plugins are a good idea).
Quoting the vim documentation:
"""
JUSTIFYING TEXT *justify* *:Justify* *Justify()* *package-justify*
Vim has no built-in way of justifying text.
However, there is a neat macro
package that does the job. To use this package, execute the following command: >vim
:packadd justify
Or put this line in your |vimrc|: >vim
:packadd! justify
"""
Daniel Cerqueira <dan.list@lispclub.com> writes:
Lumin Etherlight <lumin+usenet@etherlight.link> writes:
Perhaps, better yes. But if one editor is
worthy of being discussed in comp.unix.shell, it's
ed, because ed is almost completely useless if not
for the shell. I spell check in ed by calling to
a shell program !aspell %, I format the post by
doing the same !par, when I want a calendar in my
task file I !cal, etc. etc. Personally, I think
ed is the only editor that follows the UNIX
philosophy closely, it applies edits to text, and
it does so very well.
When I want to edit text, ed is my shell.
I love the way your text is formatted. Lumin, how have you formatted
the text above? :-) .
I do use GNU Emacs, and I think you made a good argument for 'ed' in me.
If anyone here know how to format like the text above, but in GNU Emacs,
I would like to know how.
Daniel wrote that he uses a program called "par" to format his texts.
You should be able to use it in emacs, too. Just mark your text and
type
C-u M-| par <ENTER>
assumed "par" is installed on your system.
M-q is the 'fill-paragraph' function.
On Fri, 03 Jul 2026 00:55:34 +0100, Daniel Cerqueira wrote:
M-q is the 'fill-paragraph' function.
And a very versatile one it is, too. It copes with indented text,
preserves quoting or comment prefixes, and also helpfully removes
redundant spaces. ;)
Actually, 'par' is not giving good results, so I stopped using it (it
was recommended to me) and, by contrast, I started using C-u M-q on a middle of a paragraph text, to do the job I was trying to achieve with 'par'.
M-q is the 'fill-paragraph' function. With a prefix (C-u before the call) it justifies and fills the paragraph.
A little warning about M-q. In GNU Emacs 30+, the scratch buffer's
M-q is redefined to something else.
FWIW, I tend to use 'fill-paragraph' a lot in scratch.
On Fri, 3 Jul 2026 01:32:46 -0000 (UTC), John McCue wrote:
A little warning about M-q. In GNU Emacs 30+, the scratch buffer's
M-q is redefined to something else.
I didnrCOt notice this (running Emacs 30.2, since thatrCOs what was in
Debian Unstable on my last upgrade), because I run with EmacsrCO entire
mode system disabled.
FWIW, I tend to use 'fill-paragraph' a lot in scratch.
So do I.
Oh, and I also added a buffer-protection mechanism, because I have a
shortcut (super-W) for closing the current buffer, and I was losing
the scratch buffer too often from this. ;)
[...]
The point being that I use the initial buffer more for quick
note-keeping that ought to be transitory until saved in a more
appropriate fashion, but I kept getting bitten by bugs of the following species - not saying it happened often enough, but still it happening
once an year or so would pose an issue:
* Drosophila Segmentationum Faltum
* Aedes Blackoutitis
Now more seriously, [...]
Joerg Mertens <joerg-mertens@t-online.de> writes:
Daniel Cerqueira <dan.list@lispclub.com> writes:
Lumin Etherlight <lumin+usenet@etherlight.link> writes:Daniel wrote that he uses a program called "par" to format his texts.
Perhaps, better yes. But if one editor is
worthy of being discussed in comp.unix.shell, it's
ed, because ed is almost completely useless if not
for the shell. I spell check in ed by calling to
a shell program !aspell %, I format the post by
doing the same !par, when I want a calendar in my
task file I !cal, etc. etc. Personally, I think
ed is the only editor that follows the UNIX
philosophy closely, it applies edits to text, and
it does so very well.
When I want to edit text, ed is my shell.
I love the way your text is formatted. Lumin, how have you formatted
the text above? :-) .
[...]
[...]
The par program by default does not format text the way
Lumin Etherlight does. They might be using par with options.
"par -j" formats paragraphs by inserting spaces so the text is right-justified. "par -j -w50" does the same, but with 50-character
lines. I don't see an option to insert two leading spaces on
each line.
Personally, I find Lumin's formatting distracting. For fixed-width characters, right-justifying text by inserting blanks makes the text
more difficult to read, IMHO with no real benefit. (It tends to work
better with variable-width fonts.) Leading spaces typically denote
quoted text; adding using them on original text is unconventional,
and therefore distracting. 50 or 52 columns is much narrower than
most articles, which I also find distracting. (I use 70 or so,
typically via "fmt -w 70" or the equivalant "fmt -70".)
Lumin's formatting is clever. Clever is not always good.
[...] I usually just make one big filesystem on most machines.
There isn't much reason to split them up anymore. [...]
On Wed, 10 Jun 2026 22:01:23 -0000 (UTC), John McCue wrote:
From what I have seen, seems Linux does not have a real single user
mode.
There is no rCLreal single user moderCY in any *nix. The concept of single/multi-user mode is irrelevant to the kernel.
[...]
On 2026-06-09, Koen Martens wrote:
Zayd Mohammed <zaydm@172.24.208.1> wrote:
ed is the standard text editor.
Ed made sense when your only way to interact with a system
was through a line printer (such as a DECwriter), but when
terminals with a screen and a cursor were invented, it was
rapidly supplanted by more usable editors.
ed *is* usable, let's stop this "there are bigger/different programs available so it has no use now" nonsense, shall we?
If we're going to put ed in that bag, sed should go there too, I
guess. After all, some such "more usable editors" can "replace" sed...
(And if you claim sed is different because it can be used in
automation... can't ed be used that way too?)
In article <eli$2606102012@qaz.wtf>,[...]
When Solaris 2 came along, essentially everything was
dynamically linked; statically linked binaries went into /sbin,
and my sense at the time was that 's' stood for 'static' (or
possibly 'standalone'). Nowadays, that is mostly system
utilities, whether statically linked or not, and so the meaning
has shifted again.
My recollection is that the 's' in sbin (/sbin and/or /usr/sbin), has
always stood for "system". Typically an ordinary non-administrative
user would not have /sbin or /usr/sbin in their $PATH, but both
would be in the default $PATH for the root account.
Wikipedia (which is not a primary source) says it's "system" or
"superuser". >https://en.wikipedia.org/wiki/Unix_filesystem#Conventional_directory_layout
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 74 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 50:07:31 |
| Calls: | 1,100 |
| Files: | 1,339 |
| Messages: | 275,859 |