I just installed GVIM
, went through the menus, and changed a bunch of settings.
I closed GVIM
, and the settings were all lost. :(
I made my changes again.
Now how do I keep my settings?
You can use :set
command to list all settings and put it to ${HOME}/.vimrc
.
:se[t] Show all options that differ from their default value.
I wonder why nobody mentioned to use a vim session to save global settings and the views for all windows. Of course mastering .vimrc
should be on the agenda of any serious vim user, but sessions can help further. Especially since they are similar to 'profiles' which are familiar to many people.
There also exist a plugin for gvim that facilitates the dealing with sessions further (sessions.vim : Easy session management for gvim.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With