|
FAQ
Frequently Asked Questions
Deprecated IMPORTANT: Always consult :h macvim (and :help) first! Configuration settings for Vim (and hence MacVim) are set in the files "~/.vimrc" and "~/.gvimrc" (see :h vimrc-intro). If these files don't already exist you simply have to create them (and make sure to save them in your home directory, i.e. "~/"). How to change the default size of new windowsSnapshot 50 and later automatically restore the size of the first window opened. However, if you always want the same number of lines and columns you can e.g add set lines=35 and set columns=100 to your "~/.gvimrc" file to make new windows open 35 lines high and/or 100 columns wide (see :h 'lines', :h 'columns'). How to make a window fill the screen when zoomingThis is covered in the help. See :h macvim-hints | /zoom. Monaco 10pt is jagged even though 'antialias' is setOpen up Terminal and type defaults write org.vim.MacVim AppleSmoothFixedFontsSizeThreshold 1 and restart MacVim. Alternatively, enable the "experimental renderer" in the Advanced preferences (snapshot 51 or later). The keyboard layout switches on its own when I change modeAdd set imd to your "~/.vimrc" file (see :h 'imd' for more information). The toolbar does not stay hidden when restarting MacVimAdd set go-=T to "~/.gvimrc" (see :h 'go' for more information). How to use LaTeX with MacVimThese instructions are the bare minimum to get you started with the LaTeX-Suite (search the vim_mac archives for more information):
Note: When you start editing a new file you may have to enter :set ft=tex before all the plugin mappings are loaded (when you open an existing file the filetype ... line you added to .vimrc will take care of that for you). Using MacVim with XcodeIn Xcode, open Preferences and click the "File Types" tab, then expand "file -> text". Under the "text" item there is an entry called "sourcecode"; click the second column (Preferred Editor) of this entry and choose "External Editor -> Other". Navigate to MacVim.app in the dialog that pops up. The "external editor" support in Xcode is very limited. Basically all the above change does is to open source code files in MacVim. You can also double click on build errors to open MacVim on the line where the error was reported. How to get MacVim to look like the screenshotAdd the following lines to "~/.gvimrc": set go-=T
set bg=dark
if &background == "dark"
hi normal guibg=black
set transp=8
endifHow to make Open and Save dialogs show hidden filesMacVim 7.2 stable 1 and Snapshot 33 (or later) have a checkbox to show hidden files in the Open dialog box. Open up Terminal and type defaults write org.vim.MacVim AppleShowAllFiles 1 and restart MacVim. No window opens in MacVim even when I select "New Window" from the "File" menu!Update to snapshot 28 or later. Backspace does not workUpdate to snapshot 28 or later (or set the option 'backspace' to "indent,eol,start"). |
Here is how to have your cake and eat it too: trash /Library/InputManagers?/LCC Scroll Enhancer Loader
This will keep Logitech Control Center installed, if you actually like its advanced configuration, additional buttons, etc. and will clear all sorts of problems with MacVim?, Growl, and other apps.
I couldn't find any downside to it, so I guess that Input Manager does something I don't need. YMMV
Please do not ask questions on the wiki. Post your questions to the vim_mac mailing list instead. Thanks.