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

Recompile MacPort's version of MacVim with Python, Ruby & Perl

Linux guy making the switch to Mac (10.8). Because I'm lazy... I used MacPorts to install MacVim. It seemed to install without error. I just need python, ruby and perl support in mvim. $ /opt/local/bin/mvim --version | egrep…
todd_dsm
  • 918
  • 1
  • 14
  • 21
5
votes
1 answer

.vimrc is not executed when opening a new tab in MacVim

I've got MacVim and Janus installed. I have recently added set rnu to my .vimrc.after to enable relative line numbering and found out that I only have rnu working when opening a new window. I mean, when I open a new tab in existing window, I get…
appplemac
  • 382
  • 4
  • 13
5
votes
2 answers

How to get a visual bell in vim on Mac?

I am calling vim from the terminal on Lion OS X. I want to get rid of the audio bell and use only a visual bell. The documentation seems to indicate that I can accomplish this with :set vb. Once I issue :set vb the following settings result: :set…
Rocketman
  • 3,464
  • 5
  • 27
  • 30
5
votes
4 answers

vim/macvim plugins osx 10.7.4

Could you help me get plugins working for either macvim or the terminal vim? What I have tried thus far: To the desktop I git clone https://github.com/scrooloose/nerdtree.git. I have attempted placing the files in ~/.vim, where I created a folder…
JensD
  • 205
  • 1
  • 5
  • 14
5
votes
3 answers

homebrew macvim with python2.7.3 support not working

I installed macvim with homebrew, with python support. My incantation was as follow: brew install macvim --override-system-vim Now when I open a python file, I get a series of errors if I try to import anything. e.g. if I import re I see…
Maus
  • 1,791
  • 1
  • 17
  • 28
5
votes
1 answer

How do I tell MacVim to always use a certain syntax highlighting with a certain file type?

I'm looking for something to add to my .vimrc that would tell MacVim to always use Markdown syntax highlighting with TXT files. Currently, I can do this manually with set filetype=markdown but I have to do that every time I open a file.
ele
  • 6,021
  • 5
  • 25
  • 35
4
votes
2 answers

How do i install Command-T, Pathogen, and not using RVM?

I used brew install to install ruby (as opposed to RVM). I have on my system installed ruby 1.9.3p0. (OSX Lion) I'm trying to install Command-T via pathogen. I can normally run rake, make, ruby, whatever, but when i enter into the 'Command-T'…
Tallboy
  • 12,847
  • 13
  • 82
  • 173
4
votes
2 answers

MacVim: Pydiction unable to use

I'm trying to add Pydiction into MacVim, I followed the readme file. Put python_pydiction.vim in ~/.vim/after/ftplugin/ and write: let g:pydiction_location = '~/pydiction/complete-dict' into my .vimrc file. But when I press tab in MacVim, an error…
Steven Yue
  • 966
  • 1
  • 8
  • 16
4
votes
2 answers

fastest way to make vim use new plugin in ~/.vim/bundles

I'm using pathogen with vim. When I add a new plugin to the ~/.vim/bundle directory what's the fastest way to make my existing MacVim window start using it? Do I have to close it and open a new one or is there a quick command I can run?
Christian Schlensker
  • 21,708
  • 19
  • 73
  • 121
4
votes
2 answers

Remove command with matching braces

I'm using (mac)vim with tex-suite and would like to have a single regex command (or any other way) to do the following thing: Change \textcolor{green}{some random text} into some random text This should be done for all occurrences of…
Nigu
  • 2,025
  • 2
  • 22
  • 31
4
votes
6 answers

macvim: how to paste several times the same yanked word?

Each time i copy a word and want to replace it for several words, i do: yank the word enter visual mode, select the word to be replaced and paste the yanked word. After this process, the replaced word will be yanked and cannot continue replacing…
ppcano
  • 2,831
  • 1
  • 24
  • 19
4
votes
1 answer

Macvim Surround Plugin

I'm fairly new to Vim in general but I'm having trouble with the Surround plugin. Most of the standard options seem to work but when I highlight text in visual mode, switch back to edit mode and press 's' to surround with a character the 's' key…
Sean McHugh
  • 111
  • 4
4
votes
1 answer

vim autocommand doesn't run when opening file

I'm using QuickCursor for entering text to forms. My problem with that is I always have MacVim open, and with hidden enabled, so when I :wq from the temp file QuickCursor make, the buffer stays in MacVim, so I have to delete it to get QuickCursor…
kissgyorgy
  • 2,947
  • 2
  • 32
  • 54
4
votes
1 answer

Vim: Changing appearance of line numbers (beyond standard options)

I'm trying figure out how far I can go in fine-tuning the appearance of my Vim GUI. I'm using MacVim 7.3 and what I'd like to do is change the padding, text-alignment and border color of the line numbers. I know there are some standard configuration…
Thomas
  • 5,736
  • 8
  • 44
  • 67
4
votes
1 answer

$ command in Vim only going to the second-to-last character of a line

When I use the Shift + 4 ($) command in my Vim terminal, the cursor goes to the second-to-last character of the line I'm on, not the last. Does anyone know how I could fix this? Thanks! This image shows the cursor's location when I use the $…
laffytaffy
  • 125
  • 5