There are many mistakes in your current configuration. I can't really tell why you're seeing the behavior you're currently seeing or why things are apparently working that weren't supposed to...
Anyways, let's unpack it and address the mistakes.
As I am trying to use Vundle, I installed it in
This is the first problem. The
vimfiles directory is special for Vim and it will expect a specific directory structure there and treat directories and files with specific names in a special way.
plugin is one such special name. Vim expects to find
*.vim files that it will run after your vimrc every time it gets started. (Other special directories are
Please note that the sense in which the word plug-in is used in this
plugin directory is not the same sense in which people talk about Vim plug-ins, such as the ones plug-in managers such as Vundle manage.
In any case, placing your
Vundle.vim directory under Vim's
plugin directory is incorrect and quite likely to cause problems.
set rtp+='C:\Program Files\Vim\vim82\plugin\Vundle.vim'
The syntax of this command is incorrect, as you're not allowed to use quotes on strings when using the
The correct way to add this Windows path to your
'runtimepath' would be:
set rtp+=C:\\Program\ Files\\Vim\\vim82\\plugin\\Vundle.vim
Note the actual backslashes are doubled, and the space is escaped by another backslash.
But, again, please note that using this
plugin directory is incorrect and you shouldn't really use this path!
call vundle#begin('C:\Program Files\Vim\vim82\plugin')
It's fine to use quotes here. Single-quotes are preferred as they don't interfere with the backslashes.
What should I change? Should I actually do a reinstall and put the entire Vim in
C:\Users\<user name>\.vim, because that seems to be the assumed default for most resources I see online?
Well, you should leave your Vim installation (the software, the program, the runtime and support files) under
C:\Program Files\Vim where they currently are.
But you should maintain your Vim configuration for your user under your user's home, in particular use
C:\Users\<username>\.vim (or actually
C:\Users\<username>\vimfiles, which I believe is the default on Windows) for your plug-in manager and the plug-ins you install with it.
Take a look at
:version or at
:set rtp? to find where Vim wants to find your configuration files, and use those directories...
One reason to keep your Vim installation separate from your configuration is that then you're free to upgrade or reinstall Vim as needed and that shouldn't touch any of your configuration for it, which lives in a separate location.
Another reason to keep it separate is that you can easily transfer it to another machine where you also use Vim. You can easily backup your Vim configuration, or store it on GitHub or similar.
One final recommendation is that you should look into using the vim-plug plug-in manager rather than Vundle.
vim-plug is very similar to Vundle in the way it works (it's an easy to use plug-in manager), but it's more modern and has more features than Vundle.
It should be easy to install vim-plug on Windows. It should be easy to convert from Vundle configuration to vim-plug (mainly just renaming
Plugin 'xyz' to
Plug 'xyz') and the commands are very similar too (instead of
The README file for vim-plug has easy to follow instructions for installing on Windows, using PowerShell.
See also vim-plug's tips for migrating from Vundle.