Questions tagged [macvim]

MacVim is a version of the Vim text editor for Mac OS X.

https://web.archive.org/web/20160827085726/http://macvim.googlecode.com/files/MacVim-screenshot-10-detail.jpg

MacVim supports multiple windows with tabbed editing and a host of other features such as:

  • bindings to standard OS X keyboard shortcuts (⌘Z, ⌘V, ⌘A, ⌘G, etc.),
  • transparent backgrounds,
  • full-screen mode,
  • multibyte editing with OS X input methods and automatic font substitution,
  • ODB editor support,

and more. Most importantly, MacVim brings you the full power of Vim 7.3 to Mac OS X.

Legacy versions are available for OS X 10.4, 10.5 and 10.6. Current build is available for "Lion".

For further details see the MacVim website.

959 questions
8
votes
1 answer

ZSH - Correct Shell input/output inside Vim / MacVim

This question is about using MacVim and ZSH on Mac OS X. I am using ZSH shell and it is configured to use Colored prompt, and everything works nicely with ZSH itself. However, when I set this shell to be my default with Vim (usin: set shell=zsh\…
Stoic
  • 10,536
  • 6
  • 41
  • 60
8
votes
2 answers

Autosave buffer on :make in vim?

Is there any way to autosave the buffer before issuing :make? I use MacVim and make is bound to Command-B, which is very helpful but I cannot seem to figure out how to write the buffer before a make. I looked at all the autocmd events and nothing…
Chris
  • 435
  • 2
  • 8
8
votes
2 answers

How to not get special characters in place of meta key combinations for VIM on OS X

On OS X, at any program, when I type option-p I get π, option-P I get ∏ and there's a bunch of alt/option bindings that just return greek and other special characters. Is there a way to disable that? Currently I'm using the Auto Pairs VIM plugin and…
oblitum
  • 11,380
  • 6
  • 54
  • 120
8
votes
1 answer

"dyld: Library not loaded", "libruby.1.9.1.dylib" when calling "mvim ." in the command line

I'm trying to open my rails project into mvim (macvim) using "mvim ." but I get the following error. ➜ cs193p git:(master) mvim . dyld: Library not loaded: /Users/myusername/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.1.9.1.dylib Referenced from:…
AdamT
  • 6,405
  • 10
  • 49
  • 75
8
votes
1 answer

How do i fix this minor indent issue with vim?

If I have :setf html everything works as expected in the below example (the indentation matches up). say however, i have the following code (note the indent before the code), except i have it on :setf php. the | is the cursor
Tallboy
  • 12,847
  • 13
  • 82
  • 173
7
votes
2 answers

Why do all my MacVim color schemes look wrong?

I am having a problem with my MacVim color schemes. I have 'syntax on' in my .vimrc and I work mostly with Python. As an example, I have attached a screenshot of what the "default" color scheme looks like in MacVim to me. I am having this problem…
kamek
  • 2,390
  • 2
  • 19
  • 15
7
votes
2 answers

vim functions with script scope

I had installed Janus with my MacVim setup. In order to learn about how vim scripts work, I've been reading through the vimrc file that Janus uses, and I don't understand how the author of this is using functions. For example, here's one of the…
Chuck
  • 4,662
  • 2
  • 33
  • 55
7
votes
5 answers

VIM Unix commands printed in color

I'm using MacVim and I would like to have ! commands printed in color. For example: In bash, the following echo statement prints Hello World in green (as expected): $ echo -e "\033[32m Hello World" Hello World However, in VIM the output is not…
Brian M. Hunt
  • 81,008
  • 74
  • 230
  • 343
7
votes
2 answers

Open vim tab in new (GUI) window?

I'd like to move the current tab into a new (visual/real) window in MacVim. It's probably difficult, as: there is nothing in the vim help and only very few - not helpful - hits on google MacVim does not support it (link, 2009) So I am wondering if…
h2459jl
  • 405
  • 1
  • 5
  • 8
7
votes
6 answers

Is there an Vim/MacVim equivalent for TextMate's Find in Project?

I was using TextMate now I am using MacVim, the only thing I miss from TextMate is the "Find in Project" functionality, is there any Vim plugin providing this functionality?
rodrigoalvesvieira
  • 7,895
  • 15
  • 63
  • 84
7
votes
2 answers

MacVim Command Window text coloring help (Rspec output)

I'm trying to transition to MacVim for ruby dev. One of the hangups I have is running specs quickly and getting results (passes/failures) easily. When I run :Rake (or :!rspec %) it runs the specs in the current file. The output is shown in the…
Ben Scheirman
  • 40,531
  • 21
  • 102
  • 137
7
votes
1 answer

Is there a way to list all the default normal, visual and insert mode bindings in vim?

When you use the :map command without any parameters, it seems that it only lists custom and plugin bindings. Is there a way to view ALL bindings? It would be nice to know if a custom binding would conflict with one of the defaults. Alternatively,…
Davorian
  • 145
  • 1
  • 4
7
votes
1 answer

How to map two consecutive Shift in Vim?

Total vim newbie here, is there a way to map two consecutive to execute :FZF? I try the following config in .vimrc but no luck nmap :FZF
MarkoCen
  • 2,189
  • 13
  • 24
7
votes
2 answers

Can Omnicomplete in Vim for python/3 complete function names or just methods?

To illustrate my question, here is a simple example of how Omnicomplete is acting on my machine: name = "Bob" na gives-----> name name. gives-----> (correct dropdown menu of methods for string) prin
user4396386
  • 423
  • 8
  • 15
7
votes
2 answers

Persistent vim global marks

I recently found out the usage of global marks in vim. They seem to be quite a powerful feature, however they are deleted when vim is closed. Is there any way of defining vim global marks on vim startup (e.g by defining them in the .vimrc file) ?
bergercookie
  • 2,542
  • 1
  • 30
  • 38