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
10
votes
2 answers

Vim default leader key on a MacBook

I use Vim on a MacBook Pro and in order to input \, I have to type in Maj + Alt + /. Vim's leader key is bound by default on \ but typing the whole "shortcut" doesn't seem to work as a leader key. Is there a way to make it work or should I use…
Cydonia7
  • 3,744
  • 2
  • 23
  • 32
9
votes
2 answers

How do I get NERDCommenter to add comments in a particular column?

NERDCommenter works like this by default: //level1 //level2 //level3 How do I get to work like this? //level1 // level2 // level3
roshanvid
  • 793
  • 6
  • 21
9
votes
3 answers

How do I exclude files and directories from a project in vim (using janus)?

I'm moving from Textmate to vim (with janus) and want to exclude some directories from Ack in particular, and also NERDTree. The reason I want to do this is that Ack is useless (takes minutes to run, and produces no results) with one of my large…
i2w
  • 118
  • 2
  • 6
9
votes
3 answers

Can't Map in Vim

Got my first Mac over the weekend, and I'm trying to get adjusted. This line in my vimrc, which worked on my windows, won't work with vim through iTerm inoremap I'm wanting Shift-Enter to act as Escape in insert mode. I've tried using…
JoeQuery
  • 318
  • 1
  • 3
  • 14
9
votes
2 answers

Is it possible to remap ‘wq’ to save and close the current buffer instead of saving and quitting in Vim?

Vim newbie here. When I issue the :wq Ex command, I would like to make it save and close just the active buffer, instead of saving it and then quitting from Vim. Similarly, I would like to make the :q command to be identical to :bd in its…
9
votes
2 answers

Vim : youCompleteme plugin opens up a split window with function definition

I just downloaded and stated using the YCM plugin for vim. However I noticed that whenever the auto-complete pops up giving completion suggestions a split window also opens up in my current window. Any suggestions on how I can configure YCM to not…
James Franco
  • 4,516
  • 10
  • 38
  • 80
9
votes
2 answers

vim Mac OS X install with gui-support

I have Mac Pro, with OS X 10.9.4 (can't upgrade to Yosemite yet), and I'm trying to build vim7.4 with gui-support, or get any kind of gui-support. My current vim is version 7.3, I'm guessing, that's the default vim that ships with macs. I have…
janjust
  • 796
  • 2
  • 7
  • 21
9
votes
5 answers

tips and tricks for using vim with ruby/ruby on rails

I'm one of those developers who isn't using TextMate with any of his Ruby/Ruby on Rails work. My particular loyalty in this arena lies with vim. What are your favorite tips/tricks for using vim with Ruby and/or Ruby on Rails to make you as efficient…
randombits
  • 47,058
  • 76
  • 251
  • 433
9
votes
2 answers

How do I get macvim tabs to display graphically?

I've installed macvim via brew install macvim and turned on the "With a tab for each file" option in the preferences, but the tabs I get are VIM style tabs. Not the OS tabs you see on the macvim homepage: http://code.google.com/p/macvim/. See below…
Paul Odeon
  • 4,407
  • 1
  • 37
  • 37
9
votes
2 answers

What does 's' in visual mode do?

I have downloaded a new version of Tim Pope's surround plugin. I noticed he deprecated 's' in favor of uppercase 'S'. He said this was to prevent interference with a lot of Vim user's muscle memory for hitting lower-case 's' in visual mode. I did…
Tallboy
  • 12,847
  • 13
  • 82
  • 173
8
votes
1 answer

Inconsolata Italic in MacVim

I'm trying to use Inconsolata as my font in MacVim, but I can't seem to find an italic version. I'm using the solarized color scheme, which is supposed to italicize comments, and it works correctly for fonts that have italic or oblique versions in…
gregmacfarlane
  • 2,121
  • 3
  • 24
  • 53
8
votes
2 answers

"E426: tag not found error" when generating tags

I've got a macvim snapshot 64 downloaded from here and exuberant ctags installed via homebrew: which ctags /usr/local/bin/ctags my tags variable in vim looks like this: :echo…
shlyapa
  • 81
  • 1
  • 4
8
votes
2 answers

Changing vim cursor column color to something else than vim background?

How can I make the vim column (:set cursor column) to be of a different color? This is what I see now: Notice that the column color is of the same color that vim is using to mark my identation, etc (which I think is the background color). I would…
Goles
  • 11,599
  • 22
  • 79
  • 140
8
votes
3 answers

Making (Mac)Vim reopen with files open when closed

Use case: You have 2-3 files displayed in your MacVim window(s). You press ctrl+Q and MacVim closes. When you restart MacVim it opens displaying the same files you had when you closed it. How can you do that? -- ANSWER I added the following to my…
gws
  • 767
  • 1
  • 8
  • 15
8
votes
2 answers

Mark block based on indentation level in Vim

Is it possible to mark a block in Vim based on the indentation already in place? Similarly to v{ . It would be extremely useful for programming languages with whitespace-sensitive syntax (like Haskell and Python). For example mark everything between…
Daniel O
  • 4,607
  • 6
  • 44
  • 52