Kendall Shaw wrote:
The command :ex is what I have been using in vi since 1982. In vi it
switches to ex (the line editor that came after ed) mode.
What vi program are you using?
I am using 'nvi' because it is the closest to the original BSD vi
program that is available by free(dom) license. There if I start nvi
as 'ex' then I am in ex mode. Typing in 'vi' (the ':' is already
there in ex mode) then I enter visual mode. But in nvi visual mode
typing in ":ex" does not turn off visual mode. Typing in ":" does
however allow me to type in any ex command. This is sufficient for
me. Supposedly in nvi the Q command exits visual mode and returns to
ex mode but for whatever reason for me it says the Q command is
unknown. This has never bothered me enough to pursue it further. I
assume it is simply a bug in the nvi implementation. It hasn't been
getting much love lately.