I want to select a color scheme in gVim such that it's used always (i. e. if I select color scheme X, close gVim, and start it again, it should start with X as the color scheme, not the default one).How can I do it? Just selecting the color scheme (see menu in the screenshot above) doesn't help.
How to save color scheme in gVim between sessions?
gvim;colorscheme
In Vim, settings are saved across sessions by writing them in an init script called vimrc.On Windows, that vimrc is supposed to be at this location:$HOME/vimfiles/vimrcThe installer may or may not have created that file for you, so you'll have to create if it doesn't exist. Do :echo $HOME in Vim to know where to create that directory and that file.To save your colorscheme choice, add this line to your vimrc:colorscheme slateSee this document.