Vim will not use my .exrc file


I have just installed opensuse 11.2 and want to use vim with configuration I am used to. This configuration is embedded in an .exrc file I have put in my home directory. But vim does not act on the commands in this file. For example, I have a “set number” command, but no line numbers shows up when I start vim.

Any help appreciated.

Put those commands in ~/.vimrc. If you prefer to continue to use .exrc, put

source ~/.exrc

in ~/.vimrc

Thanks a lot. It worked!