21

我刚刚安装GVIM,浏览了菜单,并更改了一堆设置。

我关闭GVIM了,所有设置都丢失了。:(

我再次进行了更改。

现在如何保留我的设置?

4

3 回答 3

15

您可以使用:set命令列出所有设置并将其放入${HOME}/.vimrc.

:se[t]     Show all options that differ from their default value.
于 2012-05-19T04:59:47.553 回答
2

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.

于 2012-05-19T15:26:36.873 回答
-4

你真的应该学习如何使用.vimrc。就像 VIM 本身一样,以艰难的方式学习这一点意味着以后有更多的功能和易用性。

于 2012-05-19T03:16:48.460 回答