The name given to the OS X port of gVim, the popular editor.

learn more… | top users | synonyms

5
votes
1answer
7k views

How do you install plugins for MacVim?

Specifically, I'm trying to install NERDtree. I downloaded the 4.10 package from github, unzipped it into ~/.vim/, and restarted MacVim (version 7.3). Typing :nerdtree results in the following error: ...
3
votes
1answer
293 views

Height of window resizing on tab close for Vim

The tab bar automatically appear when there is more than 1 tab. When down to just 1 tab, the tab bar would disappear and the window resizes in height. The height is shorter by height of the ...
3
votes
1answer
389 views

Change to normal mode when MacVim goes background

Is there any way to leave insert mode automatically once MacVim is put in background, so when I came back it's in normal mode? Often I change the foremost application an once I come back to MacVim I ...
0
votes
0answers
430 views

MacVim with Mac Keyboard: Where Is the Right CTRL Key? [duplicate]

Possible Duplicate: Emulating the ‘right ctrl’ key on MacBook Pro keyboard (which lacks an actual ‘right ctrl’ key) I can't seem to find it... and I want to use it for MacVim to facilitate ...
2
votes
1answer
70 views

Removing @'s in wordwrapped VIM text

Lines in VIM that wordwrapped on show @ on that line instead of the text if any part of the text is off-screen. How do I get it so I can see partial wordwrapped text like other editors? Before: ...
1
vote
1answer
920 views

Get OS X Terminal.app to accept Ctrl-+ for Vim

I am trying to bind Ctrl-+ and Ctrl-- in Vim to resize the current window. However, Terminal does not seem to pass anything when I press Ctrl-+. Ctrl-- does work. I checked in Vim itself using Ctrl-V ...
1
vote
1answer
318 views

How can I speed up the first file open from NERDTree in MacVim?

Tried on both macvim snapshot 53 and the recent 55. When I open a Rails directory with "mvim .", it starts up NERD_Tree. When I open any file, it takes about 5 secs to load on my macbook pro intel ...
2
votes
2answers
2k views

Macvim color scheme conflicting with .vimrc

In my .vimrc, I specify that when I do a search, I want the terms to be highlighted - background color yellow, foreground black. Here's how I specify that: " Settings for terminal version of vim ...
1
vote
1answer
1k views

In MacVim, how do I disable arrow keys in insert mode?

I have added this to my .vimrc: nnoremap <up> <nop> nnoremap <down> <nop> nnoremap <left> <nop> nnoremap <right> <nop> inoremap <up> <nop> ...
3
votes
1answer
1k views

Getting (Mac)Vim to Work With RVM

I'm using RVM to manage Ruby installs and Gems, and MacVim to create and edit Ruby files. I have a key command in my ~/.vimrc mapped to evaluate a loaded Ruby file and print the output. It looks ...
0
votes
3answers
453 views

Mac OSX: opening .cc files with MacVim instead of Xcode by default

In Mac OSX 10.6.4, I'm trying to change the default application for opening .cc files from Xcode to MacVim, but Xcode or OSX won't abide. Here's a screenshot: Notice how the clicking "Change ...
1
vote
1answer
1k views

How to trigger VIM's autocmd key mappings for .js or .pl files

Using VIM (MacVim to be specific) I've been trying to add a number of shortcuts to my .vimrc file that have different syntax in different languages. I'm using autocmd to add different keymappings ...
1
vote
1answer
439 views

special characters in MacVim

I added the Vim plugins and such from this page http://github.com/akitaonrails/vimfiles. I followed the instructions on the page and it all worked out fine, except the part on getting Command-T to ...
7
votes
4answers
3k views

VIM - leaves .swp files after crash

I use MacVim (snapshot 51) to edit a the Python/HTML/etc files in moderately sized project. Every few months my system locks up or crashes, and Vim leaves a plethora of .*.swp files around. When I go ...
6
votes
2answers
2k views

Vim - Displaying Code Output in a New Window á la Textmate?

A few months back I switched from Textmate to Vim. Overall I really love Vim, but one of the things I miss from Textmate is using the ⌘R command to run Ruby code and having the results neatly ...
1
vote
1answer
132 views

Starting vim at top of the screen

I'm an avid MacVim user and every time I launch it the window starts about 2 rows too far down on the screen to where I have to drag it up to the top of my screen every time. Is there anything I can ...