AutoSaveSetting


Ⅰ. 插件描述

Persistent settings for gVim (Mac/Linux/Win)

Ⅱ. 基本信息

创建日期:  2011-06-15
使用用户:  1
Github星:  2
插件作者:  

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/autosavesetting'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/autosavesetting'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/autosavesetting'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/AutoSaveSetting

Ⅳ. 文档说明

Auto-saving the gVim window's size and position from previous launch (including a maximized gVim in a multi-monitors setup) and makes all the settings in the gVim's menu stick. If you change your font, it'll stick. Change your colorscheme? it'll stick, too. Enable/Disable the menu, toolbar and scrollbars? it'll stick.

Tested on standard installations of MacOSX, Ubuntu and Windows.

Only works with the GUI version of Vim. Can be made to work with terminal but it just makes more sense for the GUI version.

================

.vimrc options:

    let g:setting_restore = 1
If non-zero, AutoSaveSetting is enabled at startup. Enabled by default (1).

    let g:setting_by_vim_instance = 1

If non-zero, save a different set of settings for each Vim instance. Enabled by default (1).

    let g:setting_ignores_vimrc = 1

If non-zero, settings will persist after sourcing vimrc. Enabled by default (1).

添加新评论