Fixing VIM on Fedora Core 2

Just installed FC2 and Vi (vim) wasn\’t working properly.’, ‘Ok.. from the vim docs:

“When Vim starts, the \’compatible\’ option is on. This will be used when Vim starts its initializations. But as soon as a user vimrc file is found, or a vimrc file in the current directory, or the “VIMINIT” environment variable is set, it will be set to \’nocompatible\’.

So, to fix it, I just did this:
(in home directory)

$ touch .vimrc

This will create a config file for the current account. And, set vim back to how it was on previous versions of linux.

If that doesn\’t work, try this (as needed for Trustix)

cp /usr/share/vim/vim62/vimrc_example.vim ~/.vimrc

Leave a Reply