AndrewRadev / vimrunner

Control a vim instance through ruby code
MIT License
238 stars 13 forks source link

Double vimrunner_rc sourcing #30

Closed moll closed 11 years ago

moll commented 11 years ago

Hey,

Just noticed you're sourcing vimrunner_rc twice — once in the vimrc and then in Vimrunner::Server#connect! which gets called after start anyways.

AndrewRadev commented 11 years ago

Good catch, thanks. I removed the sourcing in the vimrc file.

I was thinking of removing the !s to error out if the file's loaded twice, but the tests seem to pass happily in this case, and I can't think of how to catch these errors at this time. For now, I'll leave the !s as they are, so that it's at least safe to re-source if it happens for some reason.