All Questions
Tagged with original-vi ex-mode
3 questions
4
votes
1
answer
2k
views
How do I map a key to search for a pattern and replace it with newline in ex/vi?
I am trying to map q in vi (not Vim) to find a pattern and replace it with newline:
Name1 Name2 Name3 Name4
to
Name1
Name2
Name3
Name4
When I try ([Ctrl-V] and [Enter] are actual keystrokes)
:map ...
9
votes
2
answers
647
views
Use ex-command to check whether two lines are identical?
I was looking at this
question and then
wondered how I might implement my answer which uses
sed using purely
POSIX
ex.
The trick is that while in sed I can compare the hold space with
the pattern ...
1
vote
0
answers
83
views
What is "open mode" and why is it in Vi but not in Vim? [duplicate]
From the Vim documentation:
1. Simulated command *simulated-command*
This command is in Vi, but Vim only simulates it:
*:o* *:op* *:...