My gVim works perfectly when I open Vim\vim82\gvim.exe
. However, when I right click a file and select open with > gVim
the plugins do not load, while other settings in my _vimrc
are applied like normal. Why does this happen?
EDIT: The :version
output is exactly the same. I also checked the Task Manager and in both cases the executable is the same. The output of :scriptnames
presents some anomalies:
These are the first lines when I run gvim.exe
~\Vim\_vimrc
~\Vim\vimfiles\bundle\Vundle.vim\autoload\vundle.vim
~\Vim\vimfiles\bundle\Vundle.vim\autoload\vundle\config.vim
~\Vim\vim82\filetype.vim
~\Vim\vimfiles\bundle\ultisnips\ftdetect\snippets.vim
~\Vim\vim82\menu.vim
And these are the first lines when I open a file with gVim from the "open with" menu
~\Vim\_vimrc
~\Vim\vimfiles\bundle\Vundle.vim\autoload\vundle.vim
~\Vim\vimfiles\bundle\Vundle.vim\autoload\vundle\config.vim
~\Vim\vim82\filetype.vim
~\Vim\vim82\menu.vim
You can see that in the second case it doesn't load a plugin script before menu.vim
.
:version
on both Vim that you start with the executable vs. the one from "open with". You can use that to see if it's the same version (same binaries or distinct ones) and what are the paths of the vimrc files it will look for. You can also use:scriptnames
to see the list of scripts Vim is reading on startup. Once you find that information, you can edit the question to include these details, they should be helpful if they don't point at the issue right away...