Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save GVIM settings? [closed]

Tags:

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?

like image 506
user541686 Avatar asked May 19 '12 03:05

user541686


2 Answers

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.
like image 75
ДМИТРИЙ МАЛИКОВ Avatar answered Oct 03 '22 18:10

ДМИТРИЙ МАЛИКОВ


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.

like image 44
user1146332 Avatar answered Oct 03 '22 17:10

user1146332