Disable normal mode in ex (vim -e)

169 views Asked by At

I have to use ex (or "vim -e"), because normal mode does not work in one of my environments.

If I start ex, the following message appear "Entering Ex mode. Type "visual" to go to Normal mode.". Is it possible, to

  • remove this unnecessary text (if I could use normal mode I wouldn't use ex mode)
  • disable normal mode at all (so that if I enter "vi", nothing happens)

Note: fixed the text (I wrote visual mode instead of normal previously)

2

There are 2 answers

2
Enlico On

Can't you start Ex with ex instad of vim -e? For me, doing so prevents the message.

1
romainl On

remove this unnecessary text (if I could use normal mode I wouldn't use ex mode)

That text is only unnecessary because of your normal mode issue. If you want a Vim tailored around your exact circumstances you will have to change the source and compile your own Vim.

Or fix the underlying issue.

disable visual mode at all (so that if I enter "vi", nothing happens)

:vi doesn't enter visual mode, it enters normal mode. If by "visual mode" you mean "the fullscreen TUI also known as vi", then no, it can't be disabled but, if you don't want that feature, why do you do :vi to begin with?

If your fingers don't agree with your brain, then you may be able to fool them with a mapping.