Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
1  
See :help system-vimrc. From serverfault.com/questions/82626/how-to-make-a-global-vimrc –  queueoverflow Sep 4 '11 at 21:43
    
@queueoverflow I updated the question in response to your comment, thanks. –  Maarx Sep 4 '11 at 22:05

1 Answer 1

up vote 3 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

Your Answer

 
discard

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.