* [9fans] Making multiple changes to dot using sam -d
@ 2022-05-11 15:14 revcomninos
2022-05-11 15:30 ` [9fans] " Silas
2022-05-11 16:40 ` revcomninos
0 siblings, 2 replies; 3+ messages in thread
From: revcomninos @ 2022-05-11 15:14 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 694 bytes --]
I am running sam -d in a Debian Linux Subsystem on Windows. I am editing a series of documents that require several changes per line(s).
I can for instance change:
I love working in sam in teh terminal
to
I love working in sam -d in the terminal
using:
.x/sam/c/sam -d/
.x/teh/c/the
Is it possible to combine multiple changes into a single expression? If so, can you provide an example for me. I have tried a few things without success.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T06c9db1e30f71346-M973a02ff3b9e185458fc3d18
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 1473 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [9fans] Re: Making multiple changes to dot using sam -d
2022-05-11 15:14 [9fans] Making multiple changes to dot using sam -d revcomninos
@ 2022-05-11 15:30 ` Silas
2022-05-11 16:40 ` revcomninos
1 sibling, 0 replies; 3+ messages in thread
From: Silas @ 2022-05-11 15:30 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 479 bytes --]
Hi,
Yep, seems you can combine changes with
,x {
x/sam/c/sam -d/
x/teh/c/the/
}
Adding an optional guard before the opening brace. Note the changes must be correct way round otherwise you get the error "?changes not in sequence"
Silas
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T06c9db1e30f71346-M9ed1425bee373a09dc2b0985
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 1757 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [9fans] Re: Making multiple changes to dot using sam -d
2022-05-11 15:14 [9fans] Making multiple changes to dot using sam -d revcomninos
2022-05-11 15:30 ` [9fans] " Silas
@ 2022-05-11 16:40 ` revcomninos
1 sibling, 0 replies; 3+ messages in thread
From: revcomninos @ 2022-05-11 16:40 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
Thank you! I was erring in that I failed to repeat x.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T06c9db1e30f71346-Mdb19a92f81130bed1063af3c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 769 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-11 16:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11 15:14 [9fans] Making multiple changes to dot using sam -d revcomninos
2022-05-11 15:30 ` [9fans] " Silas
2022-05-11 16:40 ` revcomninos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).