Lemmy comments

A Vi-like programmers text editor that highlights many languages including;
User

Your vote:

Z
rating Zac
I don't write code much anymore. But I use Lemmy editor to edit documents. Works very well.

May 14, 2024 Was it helpful?  yes(1) no(0) | Reply
E
Edro
Thank you thank you thank you!
for a line of:
a b c
(tab character is in-between letters)
a command of:
s/ /\n/g
yields:
anbnc
However
for the line:
a b c
(tab character is in-between letters)
a command of:
s/ /^v^m/g
(the ^v doesn't appear as Cliff pointed out)
yields:
a
b
c
which is what I want! Cliff is correct.
Thank you!!

Nov 1, 2023 Was it helpful?  yes(0) no(0) | Reply
S
rating Stephen Slot Odgaard
I have used Lemmy as my goto VI editor for the past 30 years or so. Don't need anything else.

Oct 1, 2022 Was it helpful?  yes(0) no(0) | Reply
E
Edro
Me, too. Windows 10 can't open the ,hlp file. Does anyone know how to express a NL (new line) in a regular expression in this vi? Usually I would do this:
:g/\//s//\NL/g
(with NL hitting the return)
That would change all '/' into new lines.
Useful after a:
$ find . -type f -a -print > filelist.lxt
Anyone?

Oct 17, 2023 Was it helpful?  yes(0) no(0) | Reply
C
Cliff
Edro,
New line should just be \n.
So, your command should read:
:g/\//s//\n/g

Nov 1, 2023 Was it helpful?  yes(1) no(0) | Reply
C
Cliff
And, I'm clearly confused. \n is the match for a newline. If you want to put a newline into the substitution, use CTRL-V, then CTRL-M.
The CTRL-V isn't visible, but tells the editor to accept the next character as a character, not to interpret it. The final command will look like:
:g/\/s//^M/g

Nov 1, 2023 Was it helpful?  yes(1) no(0) | Reply
E
Edro
Cliff,
Thank you thank you thank you!
for a line of:
a b c
(tab character is in-between letters)
a command of:
s/ /\n/g
yields:
anbnc
However
for the line:
a b c
(tab character is in-between letters)
a command of:
s/ /^v^m/g
(the ^v doesn't appear as Cliff pointed out)
yields:
a
b
c
which is what I want! Cliff is correct.
Thank you!!

Nov 1, 2023 Was it helpful?  yes(0) no(0) | Reply

Alternative downloads

CoffeeCup HTML Editor
rating

Design and code websites and get a live-preview while editing.

PHP Expert Editor
rating

Php script development tool.

SciTE Text Editor
Free
rating

SciTE is a text and source code editor based on scintilla.