How to Customize Vim
Where is the vimrc file?
The main customization point of Vim is the so called vimrc file (that is not always named vimrc).
The location of that file depends on the Operating System (Linux, Windows, macOS) your are using and the version of Vim
you are using (Vim, Neovim).
Linux or macOS + Vim
~/.vimrc~/.vim/vimrcalternatively (My Favorite)
Linux or macOS + Neovim
~/.config/nvim/init.vimalternatively (My Favorite)
Or if XDG_CONFIG_HOME is defined
$XDG_CONFIG_HOME/nvim/init.vim
Windows + Vim
~\_vimrc~\vimfiles\vimrcalternatively (My Favorite)
Windows + Neovim
~\AppData\Local\nvim\init.vim
Or if XDG_CONFIG_HOME is defined
%XDG_CONFIG_HOME%\nvim\init.vim