Questions tagged [ex]

For questions pertaining the ex utility, a line-oriented text editor first developed by Bill Joy in 1976. The ex editor was later extended with a "visual mode", which turned into the vi screen editor. Use this tag for questions about ex itself, using ex, or questions about issues arising from the usage of utility itself.

ex is a line editor which serves as the foundation of . ex commands work on the current line or on a range of lines in a file. ex is invoked using the colon syntax within vi, and can be invoked on its own from the shell.

External reference

ex specification (The Open Group Base Specifications Issue 7, 2018 edition)

13 questions
3
votes
3 answers

How to find last matching line with ex?

The ex command $ navigates to the first character of the last line. Therefore, when doing a backwards search it skips the line it's currently on. How do I navigate to the last character with ex, or alternatively search for the last occurrence of a…
l0b0
  • 51,350
1
vote
2 answers

How to end the "i" command in ex

While experimenting with the ex text editor, I executed the :$i command (which inserts text before the final line) and found myself unable to proceed. I assumed that I could return to normal mode by pressing esc, similar to vi(m), but it didn't have…