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

How do I get back to where I was before after hitting gg in Vim?

For example, let's say I am happily editing a document in Vim when I accidentally hit gg. I then end up on the first row of the document, and of course I have no idea which was the exact row that I last edited. Is there any way of magically get back…
c00kiemonster
  • 22,241
  • 34
  • 95
  • 133
13
votes
1 answer

Vim cursor shape depending on current mode

I currently use MacVim for a lot of my editor needs but occasionally I need to edit files remotely over SSH. In MacVim the shape of the cursor varies depending on your current mode, i.e. command mode -> block cursor and insert mode -> vertical bar…
David
12
votes
1 answer

vim + NERDTree red filenames?

I started using vim (MacVim) + NERDTree recently, and I'm getting some strange behavior editing my notes (simple text files). Can anyone explain why the filenames are red, and why they have an asterix next to them? They are saved, they are most…
Jordan Scales
  • 2,687
  • 4
  • 28
  • 37
12
votes
2 answers

Ctrl + S is not working as a horizontal split in VIM when using CommandT

I've been tweaking my ~/.vim quite a lot lately, and it seems that I broke something. I'm using the CommandT plugin, which when the search is open allows for the following: enter - open the file in current buffer Ctrl + S - open the file in…
Jakub Arnold
  • 85,596
  • 89
  • 230
  • 327
12
votes
1 answer

Disable vim E211: File no longer available

After switching git branches, any files that existed on my previous branch raise an E211: File "path/to/file.txt" no longer available warning. I already know that and I find it very annoying that I'm warned about it every time I change the tab or…
James Klein
  • 612
  • 4
  • 15
12
votes
5 answers

Getting started with macvim, how to manage a project?

I have started out with macvim and now fairly comfortable with the navigation (on a single file) and now I need to write a whole project (say rails) using mvim. In textmate, you have mate project_dir which opens the project in a side drawer, so my…
zengr
  • 38,346
  • 37
  • 130
  • 192
12
votes
3 answers

MacVim gets all settings from ~/.vimrc, but not the colors and I have to source it again

I am using the following ~/.vimrc with MacVim 7.4 on MacOS X Mavericks: set guifont=Menlo:h14 set encoding=utf8 set mouse=a set expandtab set ts=8 set showcmd set nocompatible set backspace=2 set viminfo='20,\"50 set history=50 set ruler set si set…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
12
votes
1 answer

Spanish spelling checker for MacVim?

How do I add the Spanish spell-checker for MacVim? I read that this is a useful link, but apparently it is not working ... what should I do?
Balz
  • 315
  • 3
  • 11
12
votes
1 answer

Can't paste into MacVim

I copy text from outside of Vim. ⌘V in other apps pastes text without problem. In MacVim, it doesn't work. In Insert Mode, nothing appears. In Normal Mode, I get E353: Nothing in register +. This happens when set clipboard=unnamed is on or…
Evan Hahn
  • 12,147
  • 9
  • 41
  • 59
12
votes
2 answers

Overriding system vim on Mac

I installed macvim via brew install macvim --override-system-vim. All appears to be well. When I do an ls -lart on /usr/local/bin here is what I get for the symlinks relative to vim: vimex -> ../Cellar/macvim/7.3-66/bin/vimex vimdiff ->…
Levi
  • 839
  • 2
  • 7
  • 21
11
votes
2 answers

Displaying Vim variables

Possible Duplicate: Get current value of a setting in Vim I know that you can use :set to change Vim settings and that you can set up a configuration file ~/.vimrc but I'm running into some issues getting this to work with MacVim and I want to be…
chuck taylor
  • 2,476
  • 5
  • 29
  • 46
11
votes
2 answers

MacVim + Command-T plugin, how open in new tab by default

I would like to do the following with the Command-T plugin for VIM: Make opening files be in a new tab by default, instead of having to hit CTRL-T when a file is selected. I would like [Enter] to open the selected file in a new tab. I can't find…
Andy Ray
  • 30,372
  • 14
  • 101
  • 138
11
votes
2 answers

How to change default indent in macvim?

I am learning to configure the macvim. Now my tab indent is 4 character, I want to change it to 2. What should I add to the macvim configure file? Is there any beginner guide for me to learn configure mac vim?
mko
  • 21,334
  • 49
  • 130
  • 191
11
votes
2 answers

Vim/MacVim: when I scroll with mouse, the text cursor moves too!

I've been getting used to Vim/MacVim for the last few weeks. One of main problems I seem to be having is when I scroll around using the mouse (especially when I'm trying to select large portions of text) the text insertion cursor moves too and…
littlejim84
  • 9,071
  • 15
  • 54
  • 77
11
votes
2 answers

How to setup Syntastic as python3 checker instead of python2

In MacVim, I save following code as test.py print "Hello world! python2" , which is apparently wrong with python3, but after I run :w to save the file, there is no error message for it, Following is a part of ~/.vimrc, which is all about…
NeoZoom.lua
  • 2,269
  • 4
  • 30
  • 64