Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Banavara's user avatar
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 ...
Wildcard's user avatar
  • 4,449
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* *:...
wefwefa3's user avatar
  • 1,203