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

learn more… | top users | synonyms

0
votes
1answer
139 views

MacVim commands not working in insert mode

The following shortcuts I have defined in my settings: "Select next/prev tabs noremap <C-Tab> :tabnext<CR> noremap <C-S-Tab> :tabprev<CR> are for going to the previous and ...
0
votes
1answer
75 views

Going to CSS class in vim

In Sublime Text 2 I used to hit command + t and type in the CSS class I had to go to. How can I do that in vim?
1
vote
1answer
94 views

Activate pref to hide macvim when last window closes, via vimrc or command line

MacVim has a preference item under "General > After last window closes" that gives the option to Hide MacVim. This returns focus to the terminal after the last MacVim window is closes via :q. I'd ...
13
votes
2answers
3k views

How can I use the Homebrew Python with Homebrew MacVim on Mountain Lion?

I originally asked and answered this question: How can I use the Homebrew Python version with Homebrew MacVim? These instructions worked on Snow Leopard using Xcode 4.0.1 and associated developer ...
3
votes
1answer
145 views

MacVim crash with Gundo

Every time I invoke gundo MacVim crashes with the following error. Vim: Caught deadly signal SEGV Vim: Finished. It works fine in Normal vim but I am not sure what the problem is I built the app ...
1
vote
1answer
300 views

How can I use remote server with Macvim on the command line?

mvim --servername master works, but loads the gui mvim -v --servername master doesnt
0
votes
1answer
549 views

How to install macvim on OS X 10.7 Lion from its .tbz package?

I got a .tbz file from http://code.google.com/p/macvim/ I am a new Mac User. And i would like to use macvim for my development. How can I upzip this file and make installation for that .tbz file? ...
1
vote
0answers
147 views

MacVim does not open new windows

This happened right after I removed some folders on my system ruby, the more I have reinstalled the xcode. But even so, it opens new windows, only the icon appears and the toolbar of the software. I ...
1
vote
1answer
669 views

MacVim, Command-T: SEGV

Details: OSX 10.7.4 I installed the latest MacVim via Homebrew: $ command-t brew install macvim ==> Downloading https://github.com/b4winckler/macvim/tarball/snapshot-64 Already downloaded: ...
2
votes
1answer
230 views

Is it possible to show gridlines in the background in vim?

Is it possible to show gridlines in the background in vim (ideally each four characters)? Or, if not possible in vim, is it possible in MacVim?
12
votes
1answer
3k views

How can I use the Homebrew Python version with Homebrew MacVim on Snow Leopard?

Note: For Mountain Lion, see: How can I use the Homebrew Python with Homebrew MacVim on Mountain Lion? I've installed Python 2.7 with Homebrew on Mac OS X Snow Leopard. When I install MacVim ...
1
vote
1answer
802 views

How to move previous opened file in NERDTree?

Does NERDTree have a stack to track opened files? I want to go back to previous file easily(As like ctags does by Ctrl+T). But I can't find the feature in it's manual. Is it even possible?
2
votes
2answers
2k views

Vim: Shortcut to move to beginning of next line / end of previous line?

Is there any shortcut in vim to move to the beginning of the next line or the end of the previous line? Is there any way to do it without having to use $ or ^? Also, is there any way to make it so ...
1
vote
4answers
1k views

Macvim lags while Vim on terminal is buttery smooth

I am running OS X Lion 10.7.3 and Macvim runs significantly slower than vim on the terminal for me. All movement commands in Macvim are much slower. Moving up and down in visual mode is equally as ...
2
votes
1answer
305 views

Self Built MacVim on OSX 10.6 doesn't open a GUI window

I've noticed the MacVim downloads page has stopped uploading pre-compiled snapshots for OSX 10.6 (only 10.7 is supported now, with 10.6 considered LEGACY). I'm still using 10.6 and wanted to build it ...
2
votes
1answer
257 views

How do I set the cursor to stop when it hits the end of a line in Vim?

(Disclamer: I'm new to Vim.) I've mistakenly managed to enable cursor movements to travel anywhere on the screen, i.e. beyond end of lines. This makes it very tedious to spot redundant whitespaces, ...
2
votes
1answer
373 views

Map MacVim (mvim) movement keys in iTerm2

This question has been asked in various forms and there are a few blog posts around the net but I can't seem to find one that works consistently. I'm going to ask it for my (and perhaps other's) ...
7
votes
2answers
3k views

How do I only dp or do just the lines, not the entire block in Vim diff?

I'm currently using MacVim (Snapshot 64) "Split Diff by..." menu option. The file is Django's my settings.py from version 1.3.1 to a fresh file from version 1.4. (Open the image on a separate ...
1
vote
1answer
947 views

Homebrew error with MacVim on OSX Lion

I am trying to install Macvim with Homebrew on an OSX machine running Lion. After installing iconv at /opt/local/bin/iconv I get the following error in the log: Error: Can't run ...
3
votes
3answers
759 views

Minimizing the toolbar in MacVim on OSX Lion

In previous versions of OS X it was possible to minimize the top toolbar of most applications due to a small button in the top right of the window. In Lion however it seems that this has been replaced ...
1
vote
1answer
362 views

How to move VIM's status-line and command-line to the top of the window?

I don't like them at the bottom of the display. Instead, I want them located at the top. I didn't find any command to config it that way. Are there any? Or are there any switches in the source files ...
1
vote
1answer
533 views

Using macvim diff for SVN diffs with Versions on OS X

I would like to use Macvim's diff mode for file comparison in the SVN application called "Versions" for OS X. How would I write a script that launches Macvim in diff mode for such file comparisons? ...
7
votes
5answers
3k views

Shortcut to switch tabs in MacVim

Are there any shortcuts to switch the Tabs from one to another in MacVim? Any tips to bind the shortcuts myself in .vimrc like ⌘ + 1 for Tab 1 and ⌘ + 2 for Tab 2. For example, like switching ...
0
votes
1answer
220 views

VimScripting NERDTree

Trying to force cursor to leave NERDTree window on MacVim startup (mvim .) so I could continue make new split-ups and open certain files in them. But it feels like cursor is stuck in the NERDTree and ...
1
vote
1answer
294 views

Disable Command+S shortcut for saving files in MacVim

Is there any way to disable MacVim's Command + S shortcut for saving files? I'm sure there's a way to do it, since the same is possible with the Command + T shortcut by doing this: if ...
2
votes
1answer
423 views

Emulate Typewriter Scrolling in Vim

I've been using WriteRoom for a while for all my distraction free writing needs. But since I recently decided to move to Vim (or more specifically, MacVim) I've tried to reduce my usage of other text ...
5
votes
2answers
2k views

How can I make terminal Vim look as good as MacVim?

I'm using the same color scheme for Vim both in the Terminal and in MacVim, but they end up getting totally different colors. Terminal: and MacVim: Why is this happening? It does this with ...
1
vote
2answers
604 views

VIM - Auto-indent lines with over length

Is there an option in VIM to auto-intend (like in Espresso) lines which are too long to be displayed in the current window so that they get an automatic line break? This is how it looks like in ...
8
votes
2answers
549 views

Vim across multiple monitors

Does anyone have an elegant solution for having MacVim or gvim span across multiple(potentially different resolution) monitors? Having 2 sessions doesn't work well due to separate buffers and swap ...
2
votes
2answers
329 views

Prevent MacVim copying every visual selection to clipboard

Every time the visual selection changes in MacVim, it is copied to the system clipboard. Is this normal and can it be disabled?
7
votes
4answers
2k views

MacVim is not found by Spotlight

I'm a Mac Noob but generally a power Linux user. My new job handed me a fresh MacBook Pro with Lion installed. I installed MacVim successfully using homebrew. I'd love for it to be the default app ...
2
votes
1answer
83 views

MacVim erases file color labels

This might be more suited for apple.SE, but here is my question anyway. When editing with MacVim a file that has a color label, the color label disappears when the file is saved. I have the feeling ...
0
votes
1answer
277 views

Building MacVim — missing some available features

When I compile MacVim from source, I use a bunch of flags for configure: ./configure --enable-features=huge ...(enable python,ruby,perl, and c interpreters)... --enable-gui=macvim But when I run ...
7
votes
3answers
15k views

Vim in OSX: How to do page-up/page-down/go to EOL through a vim file opened in terminal?

In putty, which is how I primarily used VIM, I could do the following: Page up/down : Using the native Page up/down key. In Mac, the alternative is Fn + Up/Down, which doesn't work in the terminal ...
1
vote
0answers
321 views

Is anyone using pysmell for vim with luck?

I'm trying to get pysmell (https://github.com/orestis/pysmell) to work - looks like a nice code completion tool for django development in vim. I'm on Mac OS X 1.7.1 (Lion) with MacVim 7.3 (snapshot ...
59
votes
4answers
23k views

The best way to make MacVim's vim (console, not mvim) the default instead of Mac OS X's vim?

I installed MacVim using homebrew. (brew install macvim). If I call mvim from cmd, it opens the GUI MacVim. I would like to make vim call the MacVim's Vim ...
1
vote
1answer
357 views

How to create maps for the fn key in MacVim

I've been having some pains in my left little finger, and I'd like to try to alleviate it's task by using the Fn key in Mac keyboards as the Ctrl key in MacVim, since that's where 90% of my action ...
2
votes
1answer
903 views

How do you use snipMate HTML snippets in a PHP file without changing filetype?

Is it possible to use HTML snippets with Vim's snipMate plugin in a PHP file without changing the filetype? I'd like to be able to use the HTML snippets in my PHP files because a lot of times I am ...
1
vote
2answers
699 views

How can I prevent MacVim from showing OS X' Find/Replace dialog when pressing Command-F?

Using MacVim, I'd like Command-f to not show OS X' Find/Replace dialog, but instead beginning a normal search in Vim, i.e. sending / from normal mode. I.e. I'd like MacVim to use Vim's internal ...
0
votes
0answers
93 views

How to ignore changes made in a NERD_tree windows when closing MacVim?

I'm using MacVim with the NERD tree plugin. When I close MacVim I get a model window saying There are several documents with unsaved changes. and asking me if I want to save those changes. That's ...
0
votes
2answers
343 views

MacVim-like keyboard shortcuts in gVim

MacVim has some nifty features like Cmd + S to save Cmd + Z to undo, and so on, is there a port like this for gVim.
5
votes
1answer
933 views

How to configure MacVim to quit on exit?

When I close MacVim using the standard vim command :q, the MacVim window closes, but the program is still running. This causes trouble when other processes try to spawn an instance of MacVim, because ...
4
votes
2answers
1k views

Switch buffers in MacVim

I want to be able to switch buffers (:bn! / :bp!) in MacVim, using shortcuts like Alt (Option) - Left Arrow Key/Right Arrow Key So far I wasn't able to do that. Here's my mapping for the keys, ...
0
votes
2answers
414 views

MacVim symlink points to earlier vim version

Using homebrew I installed MacVim 7.3, but when typing "vim" in terminal it points met to 7.2 version that I installed by downloading MacVim from the web. I must have installed it a while ago and set ...
18
votes
2answers
3k views

vim scrolls very slow when a line is too long

I would never have thought that vim would be so slow. All I have is the following long line: I run vim (MacVim) under Mac OSX with the terminal app. Here is my vimrc. Hope that it has nothing to do ...
1
vote
1answer
697 views

MacVim IM INSERT MODE

While using MacVim to edit markdown files, when I enter the insert (i) or append (a) mode and type the grave ` character to start or end a line of code, MacVim switches to IM INSERT MODE and sometimes ...
11
votes
4answers
2k views

Move cursor to beginning of non-whitespace characters in a line in Vim

In Vim, is there a way to move the cursor to the beginning of non-whitespace characters in a line? For instance, how can I move the cursor to the "S" in the second line below? First line Second ...
1
vote
2answers
430 views

Corrupt vimrc file

I installed janus for my macvim (I am running Snow Leopard) and everytime I go to edit the ~/.vimrc file I get these errors: Error detected while processing function Edit: line 7: E319: Sorry, the ...
0
votes
0answers
106 views

MacVim prints 'ls' output whenever run via the 'mvim' command

Whenever I launch MacVim via the mvim command, I get the output of ls ~ printed to my terminal repeatedly for as long as I'm using MacVim: $ mvim base.theme.bash $ ActiveGSLocalData Music ...
4
votes
3answers
1k views

How can I automatically adjust the Gvim/MacVim window to the width of my vertical splits?

My overall goal here is simple, but the specifics are complex: I want to maintain each vertical split in my MacVim window at exactly 115 columns, regardless of how many splits I add. The story: I’m ...