sponsor Vim development Vim logo Vim Book Ad

AutoSaveSetting : Persistent settings for gVim (Mac/Linux/Win)

 script karma  Rating 30/13, Downloaded by 1620  Comments, bugs, improvements  Vim wiki

created by
 
script type
utility
 
description
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).
 
install details
Extract the archive to ~/.vim on Linux/MacOSX or $HOME\vimfiles on Windows
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
autosavesetting.zip 1.2 2011-08-20 7.3 + New vimrc option.
+ Prevent losing data after sourcing vimrc.
+ Support Vim Win64bit build.
+ Some minor refactorings.
AutoSaveSetting.zip 1.0 2011-06-15 7.3 Initial upload
ip used for rating: 3.15.147.215

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github