I wanted to keep all files related to vim in one folder under my $HOME directory, more specifically my gvimrc file. I've moved the original .gvimrc file to $HOME/vim/.gvimrc and created a symlink under my $HOME directory. However, when I run source %, simple functions do not run until I exit and restart the session. For example:
function! EchoSomething()
if &bg == dark
echo "bg is dark"
else
echo "bg is light"
endif
endfunction
This should echo the results on the cmdline, but it show nothing when I source my .gvimrc file.