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
6
votes
3 answers

Ctrl-f does not scroll forward in MacVim

In MacVim 8.0, ctrl-f brings up a search window instead of scrolling forward in a buffer by one full screen. ctrl-F (i.e. pressing the SHIFT key also) gives the same result. Is there a troubleshooting step or a repair step I can take?
cumin
  • 471
  • 5
  • 17
6
votes
3 answers

macvim html5 syntax highlighting in erb templates

I am trying to get syntax highlighting for HTML 5 elements in erb templates working. I have installed newest rails.vim plugin as well as html5.vim and can't seem to get it to work. Works fine on .html files.
chrisortman
  • 1,514
  • 15
  • 22
6
votes
2 answers

How can I check if a Vim buffer is modifiable?

I find the Vim shortcuts nmap o or nmap O, which insert a blank line with the enter key, very useful. However, they wreak havoc with plugins; for instance, ag.vim, which populates the quickfix list with filenames to jump…
Sasgorilla
  • 2,403
  • 2
  • 29
  • 56
6
votes
6 answers

MacVim on OSX / Yosemite: no editor windows visible at all

Installed MacVim on my Yosemite 10.10.2 Macbook Pro today from http://www.macupdate.com/app/mac/25988/macvim The problem is that no editor window(s) are visible. If I open a file using the menu, there's simply no effect: no editor window appears. …
Stabledog
  • 3,110
  • 2
  • 32
  • 43
6
votes
2 answers

Vim: return to command mode when focus is lost

I like my vim to get itself into command mode as often as possible. I think losing focus would be a good event to make that happen. Everything I found is for saving on lost focus. I'd like it to auto-return to cmd mode when switching tabs in macvim…
devth
  • 2,738
  • 4
  • 31
  • 51
6
votes
0 answers

(Python) YouCompleteMe is ignoring my code and pip packages

I am using YouCompleteMe on MacVim (vim 7.4 on OSX 10.9.4) for Python code auto-completion. YCM works perfectly when referencing Python built-in functionality (like os.* stuff), but it doesn't seem to be able to auto-complete identifiers written by…
Andrei Bârsan
  • 3,473
  • 2
  • 22
  • 46
6
votes
3 answers

Fail to set font in Macvim

I am configuring macvim on Mac OS X Mavericks. I type "set guifont=Menlo\ 14" in both ~/.vimrc and ~/.gvimrc but the editor remains displaying in courier. I insert ":set guifont?" and it reveals "guifont=Menlo\ 14". I overviewed the content of…
Zelong
  • 2,476
  • 7
  • 31
  • 51
6
votes
4 answers

Change emmet's leader key in Vim

Is it possible to to change the way you expand emmet code into HTML? The default is ctrl+y+, and thats about two too many keys for my liking. In sublime I just enter the emmet code and hit tab and it expands it. Is there a way to have it do this…
Mark
  • 3,137
  • 4
  • 39
  • 76
6
votes
1 answer

Vim edit file from machine B via machine A

For example, I have two remote machines. Let's say, A, B. Usually I can do vim scp://A/path/file to remote edit A's files locally. So, is there a way to edit machine B, which can only be accessed from A, from host machine using vim directly? Thank…
Alan Dong
  • 3,981
  • 38
  • 35
6
votes
0 answers

Transparency issue in vim

Whenever I source my .vimrc file, the the transparent background ends at the last line, or until I create new lines within the current buffer, instead of making the entire window background transparent. In other words half of my window is…
Brandon Mercer
  • 403
  • 1
  • 4
  • 10
6
votes
3 answers

How to uninstall spf13 Vim distribution?

I'm using MacVim in Mountain Lion I've installed spf13 Vim distribution but when I type:set ft=python MacVim suddenly crash so I want to uninstall it and try Janus. I've install it typing curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh…
G M
  • 20,759
  • 10
  • 81
  • 84
6
votes
8 answers

Command-T for Emacs?

I'm a long time Emacs user, but partially switched to MacVim 2 years ago, and have been using it for all my programming work (still using Emacs for other stuff). I decided to switch back to Emacs now, mainly because of the awesome evil-mode. I'm…
FullOfCaffeine
  • 539
  • 1
  • 6
  • 22
6
votes
1 answer

syntastic not functioning: no errors

I've installed Pathogen, git clone'd the syntastic repo, and tried :Helptags in mvim. However, whenever I type :Helptags, I don't get an error but nothing at all happens. Any idea what might be going on? UPDATE: I've tried again with Vundle (which…
Luke Chang
  • 149
  • 1
  • 1
  • 9
6
votes
1 answer

How to map several keys in Vim

How would I map ctrl+w+o to execute :Bonly? I have tried unmap o map o :Bonly Save file and source it with so %, but does not work.
sites
  • 21,417
  • 17
  • 87
  • 146
6
votes
4 answers

Vim: In Terminal, how can I have a better cursor?

I've noticed when I use the Terminal that the cursor is not as I configured it. In other words, in the GUI it looks perfect, the cursor that is, but in the Terminal it takes time to update, it doesn't look like I configured it etc. Here are my…
greduan
  • 4,770
  • 6
  • 45
  • 73