I'm pretty new to Vim/gVim and am probably doing something wrong. What I want to do is completely reload my configuration (like a restart), but while gVim is running (keep the current session). Here are the steps I take and their result:
Start gVim → No error
:so $MYVIMRC→ No error
:so $MYGVIMRC Error detected while processing ~\.gvimrc: line 1: E185: Cannot find color scheme 'kolor'
When I do step 3 before step 2 I don't get any error, but what if I want to source the files multiple times in the same session? Do I have to unload them first somehow, or do I have to save the session, restart gVim and reload the session again each time?
set runtimepath=$HOME/.vim,$VIMRUNTIME,$HOME/.vim/after execute pathogen#infect()
Vim 7.4, patches 1-2054
Windows & Xubuntu