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

learn more… | top users | synonyms

1
vote
1answer
616 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? ...
1
vote
1answer
1k views

How do you set up MacVim to compile and run Java?

I'm reading loads of great things about Vim and MacVim, so I've downloaded it and I've been using it for writing HTML and CSS. I figure that since I'm new to this whole area, I might as well learn ...
1
vote
1answer
420 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 ...
1
vote
1answer
94 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 — but when I use the Replace All button, the result is that all of ...
1
vote
1answer
388 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
0answers
220 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
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 ...
1
vote
0answers
329 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 ...
1
vote
1answer
411 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 ...
1
vote
1answer
831 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
945 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> ...
0
votes
2answers
352 views

Making MacVim/gVim “block” the terminal until closed

A long time ago, before I switched to vims, I used an editor for OS X known as TextMate. (Anyone remember that? ;) Its command-line binary, mate, allowed for a mate -w flag, which would block the ...
0
votes
1answer
369 views

Should I bother moving stuff from vimrc to gvimrc?

Is is worth moving gui-related options out of my vimrc and into a gvimrc if there's only a couple such options? I'm kind of inclined to keep everything in one place and house gui options inside if ...
0
votes
4answers
233 views

Vim: Jump to previous cursor position, NOT edit point

I am trying to write a tiny macro to append a ; to the end of the current line (A;), then return to the cursor position from which I jumped before executing the macro. C-o and C-i are not what I ...
0
votes
1answer
1k views

Open Macvim within terminal without opening a new window

Every time I try to edit a file, I do mvim file.txt in the terminal then a new MacVim window pops up. But if I do vim file.txt, it will not open a new window. Instead, it will initialise vim within ...
0
votes
2answers
254 views

MacVim always return focus to terminal upon leaving

I'm running Mavericks and I recently started playing around with sshfs to try to boost my productivity by using MacVim (I've been using in-terminal vim for a few years now). I really like MacVim. I ...
0
votes
3answers
95 views

Vim - Visual Mode - Improve Word Selection

Gentlemen/Ladies, I do not understand why vim is exhibiting the following behavior when I trigger the shortcut below on visual mode (.vimrc): vmap <script> <C-LEFT> :call ...
0
votes
1answer
739 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? ...
0
votes
2answers
358 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.
0
votes
2answers
447 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 ...
0
votes
2answers
767 views

MacVim behaving strangely with my aliases (even setting shell=/bin/bash\ -l)

I wanted to write some scripts and have MacVim call some bash commands. I have some aliases and wanted vim to be able to call them, so I knew I needed a login shell, just didn't know how to make vim ...
0
votes
1answer
392 views

peepopen - macvim - reindex

I am using the peepopen plugin for Macvim. However, when I create a new file within my Macvim session, it is not visible in peepopen. It is still the original snapshot from when I originally opened ...
0
votes
3answers
442 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 ...
0
votes
1answer
38 views

Replace terminal's vi with windowed vim for root

I'm on Mac OS X, but I guess this is the same for other unixes. Every time I type vi on the terminal, I want to open the GUI version of Vim (in Mac OS it's called mvim). For my user, I got it ...
0
votes
2answers
282 views

How to point MacVim to the right perl on OSX 10.10?

When I try to use MacVim from the command line, I get dyld: Library not loaded: /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/libperl.dylib Referenced from: ...
0
votes
1answer
143 views

VIM Crashes/Freezes on specific files Mac OSX Mavericks

I've recently switched over to using VIM and use a friends .vimrc that works well for him https://github.com/dtothefp/dotfilesv2/blob/master/vim/vimrc.symlink I first installed vim through Homebrew ...
0
votes
1answer
229 views

Inconsolata font with powerline support and italics

Is there an Inconsolata font package with italics and support for powerline? I have only been able to find: powerline-fonts - has powerline support but no italics Inconsolata-LGC - has italics but ...
0
votes
1answer
27 views

Keep window size when resizing font in MacVim

When changing the font size in MacVim on OSX (Cmd +,Cmd -), the window is resized as well. Is there a setting that makes MacVim keep its window's size, when the font is resized?
0
votes
1answer
57 views

Can I change a Vim setting persistently using a shortcut?

Can I change a Vim setting persistently using a shortcut? Hypothetical Example: nnoremap <script> <F7> :call ChangeConfig()<cr> function! ChangeConfig() set virtualedit=all ...
0
votes
1answer
25 views

mvim: display number of columns in window?

I'm transitioning to MacVim from terminal vim, and I've gotten used to the "80 x 24" display at the top of terminal windows (COLS x ROWS). Is there a way to enable some such display in MacVim?
0
votes
1answer
162 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
562 views

Reformat line breaks in Vim markdown file

I recently converted from TextMate to MacVim with Janus for editing my markdown files. How can I reformat an old markdown file so that lines longer than 79 characters are converted from a single ...
0
votes
1answer
355 views

Permanently change defult application for a file type?

How can I open all files of a certain type with a specific application? For instance, MacVim? Selecting open with --> other --> select MacVim and checking "always open with" works for individual ...
0
votes
1answer
220 views

Setting active window on Vim startup

I'm using MacVim with the Taglist plugin, which I want to be open all the time when I start MacVim. So in my .gvimrc I have the following :TlistToggle Which opens the sidebar when I load my MacVim ...
0
votes
1answer
22 views

“Cmd”+“Shift”+“N” works in MacVim but not terminal VIM

I use iTerm2 on Mac OS X 10.10 (Yosemite) and I installed YADR and that comes with all its configurations and mappings. One of the mappings maps Cmd+Shift+N to NERDTreeToggle. This however works in ...
0
votes
1answer
283 views

Compiling vim with python support - installing powerline

I spent all day yesterday backing up my hard drive, clean installing Mac OSX Yosemite, and now I'm trying to get all my stuff in order like it was before. I have powerline installed properly (it ...
0
votes
0answers
31 views

Vim not loading ftplugins files

I added java_getset.vim as ~/.vim/ftplugins/java_getset.vim, but when I run :scriptnames I don't see it listed. I pared my .vimrc file down to: set nocompatible filetype plugin on to remove ...
0
votes
3answers
142 views

mapping jj to escape in macvim works but not in terminal vim

In my vimrc I have: inoremap jj <ESC> Using the latest macvim I can hit jj and i'll jump from insert to command mode, but using the same vimrc with just regular vim in iterm2 it just inserts ...
0
votes
0answers
14 views

Seeing output of `make` in MacVim GUI

I recently switched to using MacVim gui and I'm really enjoying it. One of the issues I'm currently facing, however, is that when I run a command (such as make), I see the output of the command in ...
0
votes
1answer
162 views

Vim conceal feature is applied to active line

I am using MacVim with the vim-latex plugin. There is a conceal feature turned on by default that converts LaTeX symbols to unicode in vim itself so the source is easier to read. I think this is ...
0
votes
0answers
123 views

vim and macvim are not reading my .vim directory

I have installed vim and macvim using macports, and tried copying over my .vim directory from linux. Neither seems to read anything from that directory: my customizations for folding and indenting ...
0
votes
1answer
53 views

MacVim: make URLs clickable

I want to be able to click on URLs I see in MacVim. How can I do that? Is that possible?
0
votes
0answers
65 views

Vim uses system ruby and python

I have installed Python and Ruby using Homebrew and RVM respectively and they work fine in terminal, but Vim (both system and MacVim from Homebrew) launches system ones for some reason. :! which ...
0
votes
1answer
125 views

How can I make the active MacVim tab more obvious in fullscreen mode?

When I use MacVim normally and have multiple tabs open, it's easy to see which tab is active because it's much lighter than the others. However, in fullscreen mode, they are all the lighter color and ...
0
votes
2answers
78 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
137 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.
0
votes
1answer
84 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?
0
votes
1answer
230 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 ...
0
votes
1answer
298 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 ...