My favorites | Sign in
Logo
                
Search
for
Updated Aug 14, 2008 by bjorn.winckler
Labels: Deprecated
UserDefaults  
How to edit MacVim settings.

As of snapshot 20 MacVim has a preferences panel where all the relevant user defaults can be changed. The information below is somewhat outdated. Check :h macvim-prefs in MacVim for more up-to-date information.

Some of the behaviour of MacVim can be changed by editing its user defaults database. Here is a quick summary of what you can change and how to do so.

To see what settings are currently in the database, start Terminal and type

localhost:~ user$ defaults read org.vim.MacVim

To change a setting, type

localhost:~ user$ defaults write org.vim.MacVim <setting> <value>

where <setting> is the name of the setting and <value> the value you want to set it to. For instance, to have new files open in the current window instead of in a new window, type

localhost:~ user$ defaults write org.vim.MacVim MMOpenFilesInTabs 1

and restart MacVim.

Finally, to remove all settings, type

localhost:~ user$ defaults delete org.vim.MacVim

Here is a list of current user defaults; this list may well be out of date, check MacVim.m for the current list of defaults.

  • MMCellWidthMultiplier: width of a normal glyph in em units (float)
  • MMLoginShellArgument: login shell parameter (string)
  • MMLoginShellCommand: which shell to use to launch Vim (string)
  • MMNoFontSubstitution: disable automatic font substitution (bool)
  • MMTabMaxWidth: maximum width of a tab (int)
  • MMTabMinWidth: minimum width of a tab (int)
  • MMTabOptimumWidth: default width of a tab (int)
  • MMTextInsetBottom: text area offset in pixels (int)
  • MMTextInsetLeft: text area offset in pixels (int)
  • MMTextInsetRight: text area offset in pixels (int)
  • MMTextInsetTop: text area offset in pixels (int)
  • MMTexturedWindow: use brushed metal window (Tiger only) (bool)
  • MMTranslateCtrlClick: interpret ctrl-click as right-click (bool)
  • MMZoomBoth: zoom button maximizes both directions (bool)


Comment by vivacar...@gmail.com, Sep 15, 2007

does anyone plan to make a preference pain for this?

Comment by bjorn.winckler, Sep 16, 2007

As much as possible, user settings will be available from Vim via the :set command. I exposed the above user defaults because I have not had the time to think about which ones make sense to add as settings in Vim yet. Eventually, there probably will be a very minimal preferences pane, but not until I figure out what actually needs to go in there.

Comment by jackfrost13, Nov 09, 2007

Is there a way to change the default height (in lines) of a macvim window?

Comment by bjorn.winckler, Nov 11, 2007

Please post questions to the vim_mac mailing list. (As for you question: "set lines=33" in your .gvimrc will do the trick.)

Comment by konryd, Mar 18, 2008

MMZoomBoth might fit here

Comment by joehoot, Apr 30, 2008

Is there a way for me to move the tab bar to the bottom instead of the top?

Also, I've been using iTerm.app for a couple of years now and I enjoy being able to drag a tab off and have it open in a new window instead of being attached to the original tabbed window. And then, similar to iTerm or Safari, be able to drag that new window over to the tabbed bar and have it move it in with the other documents as a new tab?

Comment by bjorn.winckler, Apr 30, 2008

Please, please, please...stop asking questions here...post your questions to vim_mac after searching the archives (you'll find that your question has been asked before).


Sign in to add a comment
Hosted by Google Code