Apparently Ubuntu 11.10 uses Vim when I type
vi filename
How do I force Ubuntu to use Vi instead?
|
Apparently Ubuntu 11.10 uses Vim when I type
How do I force Ubuntu to use Vi instead? |
||||
|
|
|
You need to install the actual vi package, which is nvi on Ubuntu.
You might also need to run the line below if nvi isn't picked up automatically as the default provider for vi.
|
||||
|
|
|
man update-alternatives vi even get special mention as an example. |
|||||||||
|
|
Check out: Decide which vi-compatible tool you want to use. vim, elvis, nvi, vigor (etc). You may want to study the output of Once you've done that, install the package:
then run
and choose $YOURCHOICE as the one to set as "vi". |
||||
|
|
|
If by any chance you just want to get rid of Vim specific features, you can also make sure that Vim runs in compatible mode. |
|||
|
|
|
vim is set as your default editor. Put this as your default editor by setting this environment variable--> export EDITOR=vi |
|||||
|