Error "E492: Not an editor command: skip_defaults_vim=1" in .vimrc after vim-enhanced installation on RHEL
Issue
-
When editing files with
vion RHEL systems, the following error may appear after installing the fullvim-enhancedpackage:# vi test Error detected while processing /root/.vimrc: line 1: E492: Not an editor command: skip_defaults_vim=1 Press ENTER or type command to continue -
This can also occur if the line contains
#, such as:# vi test Error detected while processing /root/.vimrc: line 2: E488: Trailing characters: skip_defaults_vim=1: #skip_defaults_vim=1 Press ENTER or type command to continue
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 10
vim-enhancedpackage installed
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.