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
1317
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
  • 13,542
  • 3
  • 17
  • 9
368
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
  • 25,125
  • 19
  • 60
  • 71
333
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
  • 4,447
  • 2
  • 20
  • 17
274
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,729
  • 5
  • 26
  • 21
242
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,334
  • 4
  • 23
  • 26
218
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
  • 12,147
  • 10
  • 51
  • 87
194
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
  • 64,178
  • 48
  • 151
  • 180
192
votes
16 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
  • 2,021
  • 2
  • 13
  • 6
184
votes
7 answers

vim "modifiable" is off

I am trying to create a new file with NERDTree. 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 with Janus (almost out of the box).
wesbos
  • 25,839
  • 30
  • 106
  • 143
144
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,407
  • 5
  • 22
  • 25
142
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
  • 4,059
  • 5
  • 39
  • 59
140
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,296
  • 4
  • 19
  • 21
130
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,317
  • 2
  • 24
  • 32
87
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,478
  • 2
  • 14
  • 18
59
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
  • 4,138
  • 5
  • 31
  • 33
1
2 3
63 64