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.

Here is my set-up. There is a ~/.vimrc that sources several files.

I make changes to one of these. And I do :so ~/.vimrc, the changes in the underlying files are not reflected. I need to quit and restart vim.

Is there any way I can achieve this? Let me rephrase, knowing vim. How do I get the changes to reflect without restarting vim?

share|improve this question

1 Answer 1

try with this command by adding it to .vimrc

autocmd! bufwritepost .vimrc source %

Source

share|improve this answer
    
This will reflect any changes made to ~/.vimrc. But if I make any changes to a file sourced in ~/.vimrc, they are not reflected –  deshmukh Aug 21 '13 at 15:39

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.