Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autosave .vimrc #3

Closed
humanshell opened this issue Oct 25, 2011 · 2 comments
Closed

Autosave .vimrc #3

humanshell opened this issue Oct 25, 2011 · 2 comments

Comments

@humanshell
Copy link
Contributor

Kris,

The autosaving and sourcing of the .vimrc file didn't seem to be working so I replaced the last line of the .vim/vimrc file with this line:

autocmd! bufwritepost .vimrc source %

That seems to do the trick.

@krisleech
Copy link
Owner

Autosaving is working for me, but I think maybe you are editting ~/.vimrc and I am editting ~/.vim/vimrc. Two different filenames. I've added an autocmd for both filenames which should resolve the issue.

@humanshell
Copy link
Contributor Author

When I edit my vimrc I always do it through an existing MacVim window by running :e $MYVIMRC. I've pulled down your recent commits and it seems to be working fine. I'll let you know if any weird problems pop up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants