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.

938 questions
1177
votes
5 answers

What is the in a .vimrc file?

I see in many .vimrc files, and I am wondering what does it mean? What is it used for? Just a general overview of the purpose and usage would be great.
Bob Martens
  • 12,142
  • 3
  • 14
  • 9
343
votes
6 answers

How to see which plugins are making Vim slow?

Is there a way to profile Vim plugins? My MacVim becomes slower and slower when I open a large .py. I know I could deselect all plugins and reselect one by one to check which plugin is the culprit, but is there a faster way? My dotvim is here:…
charlax
  • 20,351
  • 15
  • 55
  • 67
290
votes
11 answers

Autocompletion in Vim

I'm having trouble with autocompletion. How can I get a code suggestion while I'm typing? I usually develop in PHP, Ruby, HTML, C and CSS.
diegocstn
  • 3,797
  • 2
  • 18
  • 16
267
votes
12 answers

How to run mvim (MacVim) from Terminal?

I have MacVim installed and I am trying to set it up as the editor for Git (version control), but I can't run 'mvim' from the command line as it isn't recognised. How do I setup mvim so I can run it from Terminal?
Fred
  • 4,359
  • 4
  • 22
  • 21
229
votes
4 answers

What is the difference between MacVim and regular Vim?

I'm reasonably new to OS X, but I'm familiar with Vim from using it in various *nix systems. I've seen many people recommend running MacVim over Vim in the terminal. Can anyone tell me what differences there are between MacVim and regular Vim?
Mark Costello
  • 4,094
  • 3
  • 20
  • 23
185
votes
7 answers

Change font size macvim?

I'm using macvim and I love it. I also happen to really like the default font. My question is: How do I change the font size in my .gvimrc? I want it to be bigger, without changing the font from the default. All the examples I've seen specify a…
Alex
  • 58,815
  • 45
  • 146
  • 176
179
votes
4 answers

How to jump to a specific character in vim?

How can I jump to the next character X in vim? I frequently use, e.g., dt: or ct: to delete/change everything up until a colon (or some other character). Is there any short key combo to simply move my cursor position to that character?
Jeff
  • 11,233
  • 10
  • 44
  • 85
173
votes
15 answers

How to highlight all occurrences of a selected word in VIM?

How can I highlight all occurrence of a selected word in GVim, like in Notepad++?
Matteo Cocon
  • 1,831
  • 2
  • 12
  • 6
160
votes
7 answers

vim "modifiable" is off

Trying to create a new file with nerd tree. I hit the a key to create a new file and i get the message: E21: Cannot make changes, 'Modifiable' is off I'm using MacVim and Janus (almost out of the box)
wesbos
  • 24,103
  • 27
  • 99
  • 139
135
votes
14 answers

UltiSnips and YouCompleteMe

I have bundles ultisnips and youcompleteme installed on my macvim. The problem is that ultisnips doesn't work because tab is bound by ycm. I tried putting let g:UltiSnipsExpandTrigger = "" so that I can trigger the snippet completion with…
pvinis
  • 3,855
  • 5
  • 33
  • 55
129
votes
4 answers

How can I install MacVim on OS X?

I am using OS X 10.9.1 (Mavericks). What are the systematic steps to install to Gvim or MacVim in Mac OS? If you write the steps using 1, 2, 3, ..., it would be easy to follow. I must confess that I failed to understand all the instructions…
hbaromega
  • 2,139
  • 2
  • 16
  • 26
122
votes
10 answers

What are the most-used vim commands/keypresses?

I'm a Ruby programming trying to switch from Textmate to MacVim, and I'm having trouble wading through the gargantuan lists of things you can do in VIM and all of the keypresses for them. I'm tired of hearing "You can use 'I' for inserting text, or…
Clinton
  • 2,098
  • 4
  • 17
  • 19
117
votes
4 answers

Persistent :set syntax for a given filetype?

I'm working on a Symfony2 project which uses Twig, and the filetypes are myfile.html.twig. Vim doesn't automatically detect the syntax highlighting and so applies none. I can use :set syntax=HTML after I've opened the file but this is a pain when…
Bendihossan
  • 2,099
  • 5
  • 18
  • 25
60
votes
5 answers

Vim command: how to select a word under cursor in normal mode

I'm looking for a Vim command to select a word under cursor in normal mode, like double-clicking by mouse. Does it exist like this?
Keita
  • 1,118
  • 2
  • 11
  • 17
57
votes
2 answers

Open last closed file in a new tab in Vim

I know I can open the last closed (:q) file in Vim by using :e#. This will open the file in the current tab. How would I perform the same task but open the file in a new Vim tab. Also I am interested in how to open the file in a new split instead of…
Matthew Kirkley
  • 3,764
  • 4
  • 28
  • 33
1
2 3
62 63