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
3 answers

Is there a way to dynamically examine html output with vim?

When I write html in MacVim I keep the same file open in a web browser so that I can examine the html output. One of the things I dislike about this method is that I constantly have to leave vim, go to the browser, and reload the html to see the…
drbunsen
  • 10,139
  • 21
  • 66
  • 94
8
votes
3 answers

How would I have vim highlight redundant white space and all tabs?

I found the following code that will highlight all unnecessary whitespace, but I really want it to also highlight all the tabs in my code. I played around with a lot of variations that didn't work but I couldn't find a regex that would do both. Any…
Matthew Stopa
  • 3,793
  • 6
  • 42
  • 51
8
votes
3 answers

Create a "project" in VIM/MacVim/GVIM

I'm a VIM noob, and have revisited it time and again, and I'm hoping to actually stick with it this time. Primarily I'm programming in TextMate with Ruby on Rails. On advice from someone, I have installed Janus (https://github.com/carlhuda/janus)…
Dave Sanders
  • 3,135
  • 4
  • 33
  • 43
8
votes
2 answers

How to run the proper version of Ruby when executing through MacVim (!ruby)

Recently I saw Gary Bernhardt show off a vim shortcut he uses to execute Ruby code from within vim. The shortcut is :map ,t :w\|:!ruby %. It seems that this method always execute's the System Ruby, which in my case is 1.8.7. I'm hesitant…
Ryan
  • 83
  • 3
8
votes
3 answers

VIM: command to clear current line and drop into insert mode

I am in normal mode, at the end of a line. I want to clear the line (delete all characters of the line), and drop into insert mode so that I can start writing something else on that line. Is there a Vim shortcut for this? Ideally, I would like to…
Rushi Agrawal
  • 3,208
  • 2
  • 21
  • 26
8
votes
3 answers

Adding VIM plugins to Janus setup

I recently switched over to using Janus from a custom set of vim plugins and .vimrc. I'm really enjoying the setup, but one thing I'm missing is the automatic completion of blocks in Ruby. For example, when I type: def method It would…
Peter Brown
  • 50,956
  • 18
  • 113
  • 146
8
votes
1 answer

How to change vim ruby version

I am a noob to vim and am wanting to use the command-t plugin, got really used to that in atom. I have done everything in the github repo but am unable to follow how to change the version of ruby that my vim is using. When I try to use the command-t…
8
votes
1 answer

How to configure vim to treat .es6 files as javascript files

I'm using https://github.com/carlhuda/janus . I'm doing Rails development and I have some JavaScript files where we are using es6 features. These files have extension .es6. So the files are named like users.es6. How do I tell vim to treat files…
Nick Vanderbilt
  • 2,475
  • 3
  • 27
  • 33
8
votes
2 answers

MacVim and Mercurial check-in

I'm trying to use MacVim as a default editor (on my Mac, obviously). I'd like to have MacVim to edit commit messages when I hg ci. Unfortunately when I do so (either by setting EDITOR=mvim or alias vi='mvim') MacVim pops up with an empty message…
Brian M. Hunt
  • 81,008
  • 74
  • 230
  • 343
8
votes
3 answers

Compiled vim from source on Mac OSX and getting 'shell returned 127' error?

On my Mac OSX 10.6 machine, I started to use MacVIM for vim. Then I noticed my terminal version was different to the MacVIM version (MacVIM was 7.3 and my terminal version 7.2)... I thought they used the same vim? I need 7.3 for some of the…
littlejim84
  • 9,071
  • 15
  • 54
  • 77
8
votes
1 answer

vim/macvim: locate where a method/symbol is defined

I'm using macvim/vim for most of my Ruby + Ruby on Rails development. Is there currently a way to jump to where a method was defined within a project, even if it's not in the same file as where it's being invoked? Either a language agnostic way or a…
randombits
  • 47,058
  • 76
  • 251
  • 433
8
votes
2 answers

Disable root node refresh on window focus

Whenever I focus my MacVim window it freezes for several seconds. It seems that this is due to NERDTree refreshing it's root node (It prints NERDTree: Refreshing root node. This could take a while... DONE) Since I often switch in and out of MacVim…
chopper
  • 6,649
  • 7
  • 36
  • 53
8
votes
2 answers

Monitor vim messages in real-time, inside an independent buffer

I am working on a vim plugin and as part of that I am testing various things like "auto-groups" and events where I can hook bits and pieces in general. While things are running I am using functions that output various debug messages using the echom…
mbilyanov
  • 2,315
  • 4
  • 29
  • 49
8
votes
3 answers

Using the correct version of vim

I installed vim with: brew install vim --override-system-vi I also installed macvim using: brew install macvim However, terminal vim uses 7.4.52 and macvim uses 7.4.22. Any way around this? I've uninstalled and reinstalled many times, but I must be…
DavidVII
  • 2,133
  • 2
  • 21
  • 28
8
votes
2 answers

Macvim won't load specific color scheme by default

I'm having a problem similar to VIM Color scheme not loading by default Except I am having the problem with the gentooish theme found here http://www.vim.org/scripts/script.php?script_id=2474 For some reason macvim refuses to load this colorscheme…
Marcello
  • 156
  • 1
  • 2
  • 7