我刚刚安装GVIM
,浏览了菜单,并更改了一堆设置。
我关闭GVIM
了,所有设置都丢失了。:(
我再次进行了更改。
现在如何保留我的设置?
您可以使用:set
命令列出所有设置并将其放入${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.
你真的应该学习如何使用.vimrc。就像 VIM 本身一样,以艰难的方式学习这一点意味着以后有更多的功能和易用性。