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

learn more… | top users | synonyms

1
vote
1answer
32 views

Annoying newline issue with MacVim

A lot of times when I open a file with MacVim and close it, without doing any saving, SVN always shows that the file was modified. Upon doing svn diff on the file, I get something like this: ...
1
vote
1answer
49 views

Vim: remap 'D' modifier on linux

I'm using Mac-oriented vimfiles with linux. In this config modifier D (Cmd key on Mac) is intensively used. I don't want to change every D to M, but I want to remap D to something like Meta or Alt. Is ...
0
votes
1answer
13 views

macvim highlights everything opening a file

When I open a file with MacVim, It highlights everything in red. I am not sure how to get rid of this permanently. How can I do this in .vimrc?
1
vote
0answers
21 views

MacVim Replace All not working properly

I have an html file that I need to replace some characters with html entities. Right now I'm trying to replace — with — but when I use the Replace All button, the result is that all of ...
0
votes
0answers
36 views

Using MacVim with terminal?

On OS X, I've been using Vim in combination with Terminal for all of my coding need. It works great because I can edit a file in Vim, then Cmd + } over to the next tab and run make, and then tab over ...
0
votes
1answer
45 views

Is it possible to launch MacVim NOT in full screen mode?

Whenever I Launch MacVim it takes up the whole screen. I don't want this. Is there any way to prevent it from happening? I run OS X 10.8.
0
votes
2answers
60 views

Installing simplenote.vim for vim

I copied simplenote.vim to my ~/.vim/plugin directory and added the login variables to the .vimrc. When I launch vim, it will autocomplete :Simplenote. But when I add an argument and execute I get ...
2
votes
2answers
96 views

Vim + iTerm2 color issues

I have trouble with the right Vim configuration. I'm using the latest version of Vim as well as the latest version of iTerm2. I try to get the solarized colorscheme working, but without luck so far. ...
0
votes
1answer
98 views

How is OSX supposed to work without a mouse? [closed]

I'm a VIM user so I do buy the no-mouse manifesto. I do everything without a mouse and am more productive this way. OSX is not being very friendly, though. How I'm supposed to navigate through files ...
0
votes
0answers
18 views

How to dynamically customize capslock via shortcut in pckeyboardkhack?

How to remap CapsLock key to ESC when I use MacVim, then let it remap to Ctrl when I switch application to Emacs?
-1
votes
1answer
97 views

How to switch between two Vim windows (two separate instances) on separate monitors

Whats the keyboard shortcut to switch between running instances of Vim?
1
vote
0answers
116 views

Make vim plugin Syntastic mark more than the first error in php

I'm using vim on mac (both command line & MacVim) and installed the syntastic plugin for syntax error checking. I'm now using it and its standard php syntax_checker for php coding, but if there's ...
2
votes
1answer
252 views

why doesn't my .gitconfig work? (for external diff)

I added this in ~/.gitconfig: [diff] external = mvimdiff [difftool] prompt = false and made a 755 /bin/mvimdiff that: #!/bin/sh mvim -d "$2" "$5" in order to invoke MacVim as my git ...
3
votes
1answer
109 views

Is there any way to use multiple fonts simultaneously in Vim?

I'm looking to use Consolas and Menlo (for example) within the same buffer.
0
votes
1answer
80 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
43 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
49 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 ...
0
votes
0answers
190 views

Is the default notepad++ color scheme available for VIM?

Basically, I come from a Windows background having used Notepad++ for a long time and LOVE their color scheme/highlighting for all of the different file types. Now that I'm on Mac I'm using VIM to ...
12
votes
1answer
1k 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 ...
1
vote
0answers
70 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
136 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
158 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
63 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
419 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
142 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?
11
votes
1answer
1k 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 ...
0
votes
1answer
156 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?
1
vote
2answers
477 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
3answers
528 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
172 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 ...
1
vote
1answer
100 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
259 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) ...
1
vote
1answer
527 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
761 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
503 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
219 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
300 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? ...
2
votes
3answers
777 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
159 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
192 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 ...
0
votes
1answer
134 views

Git doesn't see the folder I'm trying to commit, though it's visible in NERDTree in MacVim

Trying to commit folder, but git just doesn't see one. At the same time in MacVim's NERDTree (I have Janus distribution installed) all files from that folder are appearing with the wildcard at the ...
2
votes
1answer
261 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 ...
4
votes
2answers
1k 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
381 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 ...
7
votes
3answers
279 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
202 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?
3
votes
3answers
819 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
61 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
200 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 ...
2
votes
2answers
3k 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 2 3