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

learn more… | top users | synonyms

0
votes
2answers
88 views

relativenumber stuck on in MacVim

Some time ago I experimented with the relativenumber setting. It almost never turned on, so I finally gave up and took it out of my .vimrc. Now it seems that every time I open up a new instance, I ...
0
votes
3answers
162 views

How to send custom command to terminal?

Say, I want to run "echo hello" when I press <leader>T How can I write the script? Is there any way to do it nicely? I'm thinking about creating a custom command.
4
votes
0answers
152 views

Multiple linked sessions/instances of Vim and R with Vim-r-plugin

OSX 10.8. MacVim + Vim-r-plugin = Vim sends commands to R. Awesome! (Note I'm here asking about using MacVim and R.app (i.e. w/ Gui), not either in a terminal, since for this purpose I need both to ...
1
vote
1answer
180 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
249 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 ...
1
vote
1answer
99 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
32 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 &mdash; but when I use the Replace All button, the result is that all of ...
4
votes
2answers
947 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.
1
vote
2answers
190 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
3answers
2k 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. ...
-1
votes
1answer
117 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 ...
-1
votes
1answer
183 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
1answer
484 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 ...
1
vote
1answer
4k 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
521 views

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

I'm looking to use Consolas and Helvetica (for example) within the same buffer.
0
votes
1answer
180 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
91 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
108 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
4k 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
177 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
494 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
892 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
308 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
724 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
325 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?
13
votes
1answer
4k 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 using ...
1
vote
1answer
2k 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
4k 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 ...
3
votes
4answers
2k 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
428 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
584 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
412 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) ...
12
votes
2answers
6k 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
1k 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 /Applications/...
3
votes
3answers
915 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
418 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
652 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? ...
10
votes
5answers
6k 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
234 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
359 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 has("gui_macvim"...
2
votes
1answer
651 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
3k 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
679 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
795 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 ...
3
votes
2answers
485 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?
8
votes
5answers
3k 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
320 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 ...
16
votes
3answers
27k 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
340 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 ...