For solving this, I added an alias to run gvim with all stderr messages discarded.
Just add the following line to your .bashrc
file:
alias gvim="gvim 2>/dev/null"
I hate these types of errors and warnings when the program I'm using is beyond my control and it prints a lot of these which distract me from what I'm doing.