Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


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.

share|improve this question
See :help system-vimrc. From – Martin Ueding Sep 4 '11 at 21:43
@queueoverflow I updated the question in response to your comment, thanks. – Maarx Sep 4 '11 at 22:05
up vote 4 down vote accepted

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

share|improve this answer
This was my problem. Sometimes you just need a second set of eyes. Thanks. – Maarx Sep 4 '11 at 22:57
I think /etc/vim/vimrc.local is even better, it gets sourced by /etc/vim/vimrc – cmc May 2 '13 at 7:57
Sure it is, thanks for comment. – Pavel S. May 2 '13 at 19:45
Maybe one reason people get this wrong (me included) is that this is listed wrong on the #1 hit in Google for /etc/vimrc, – Air Sep 17 '14 at 1:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.