Vim Not Reading Global Configuration File – Troubleshooting Guide

10.04vim

I put 'start' in ~/.vimrc, and my vim starts in input mode.

I put 'start' in /etc/vimrc, and nothing happens, for any user, including root.

How do I fix this?

UPDATE:

per queueoverflow below, I consulted :help system-vimrc, which I interpreted to mean that the most common path is indeed /etc/vimrc but the system is actually computing that from $VIM/vimrc.

echo $VIM produces blank output for both a normal user and for root.

This is a fresh Ubuntu 10.04 LTS installation, did I do something wrong?

I installed vim with sudo apt-get install vim.

Best Answer

Isn't the correct path in /etc/vim/vimrc? You are missing the middle vim.

Related Question