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
29
votes
7 answers

Using Macvim over ssh

My project involves working on a large codebase on a remote server. I'm constantly editing multiple files, so scp'ing files back an forth is not possible. I've got my local Macvim setup just the way I like it, with multiple plugins including…
skeletalmonkey
  • 726
  • 1
  • 10
  • 20
28
votes
3 answers

How to run a search and replace command without cursor moving in Vim?

In Vim, when I run a substitution command like :%s/foo/bar/g it replaces all occurrences of foo with bar in the entire buffer. When it completes, the cursor moves to the last location where foo was replaced with bar. How can I run :%s/foo/bar/g…
platypus
  • 1,165
  • 5
  • 27
  • 47
27
votes
5 answers

Opening a directory in vim

I'm a mac user giving vim a serious try. Most of the GUI editors I'm used to allow me to open a directory as a "project" by executing a command like: edit ~/www/example.com/ The vim equivalent vim ~/www/example.com/ will show me a list of files in…
Abhi Beckert
  • 32,787
  • 12
  • 83
  • 110
27
votes
1 answer

List of fonts available in gvim

I know I can set fonts for gvim using something like set guifont=Menlo\ Regular:h14. I have the following questions Is there a wiki where I can see what all fonts are supported? I want to set my font to "Lucida Sans Typewriter". I tried set…
user376507
  • 2,004
  • 1
  • 19
  • 31
25
votes
3 answers

Vim auto complete

So I know you can get Vim autocompletion with Ctrl-X, Ctrl-O but I'm wondering if you could rework it so it works with just pressing Tab (more like Textmate's snippets), or even just how I could remap it to something a bit shorter (even if I can't…
Jack Franklin
  • 3,765
  • 6
  • 26
  • 34
25
votes
1 answer

Powerline can be shown in multiple buffer, but not in a single buffer

I have just installed Powerline plugin into my vim by using pathogen and submodule. The powerline is only visible when where are multiple buffers. When there is only one buffer in vim, I can't see it. I wonder whether it is a bug or not?
code4j
  • 4,208
  • 5
  • 34
  • 51
24
votes
3 answers

Folding (expanding and colapsing) xml tags in vim (xml parsing)

I know that % in vim will jump from one tag to another, I also know how to use visual mode to select entire blocks between tags in an xml file, using o to jump from the top to the bottom tags. I've done multiple web searches and have the matchit…
Deesbek
  • 865
  • 2
  • 12
  • 27
24
votes
1 answer

Speed up VIM cursor moving through j/k

On my friend new Mac, he scrolls from line #1 to line #100 using k in around 4 seconds. On my Mac, it takes 10 seconds. Neither of us know what causes his MacVim scrolls that fast. Any way that I can improve the speed of scrolling on my MacVim? I…
Phương Nguyễn
  • 8,747
  • 15
  • 62
  • 96
23
votes
2 answers

How can I select multiple lines that are not in a continuous chunk?

I am trying to select multiple lines that are not in a continuous chunk. E.g., I want to select line 1 and 3 simultaneously without selecting line 2: 1. this is line 1 2. this is line 2 3. this is line 3 Initially I thought this would be a…
K Z
  • 29,661
  • 8
  • 73
  • 78
23
votes
3 answers

Vim Ultisnips - How do I move to the next placeholder or tabstop?

I just installed a brand new copy of Macvim and UltiSnips, but I can't figure out how to move to the next completions using tabstops and placeholders. When I press tab, it simply adds a tab space. My guess is that the tab key was remapped in…
Bryan
  • 17,201
  • 24
  • 97
  • 123
23
votes
3 answers

How do I refresh files available to CommandT in vim

I'm having this occasional problem: In macvim I create a new file in the current directory using :e foo.coffee I save that file and continue working in macvim. I close and restart macvim, and use T to try to open that file but it's not…
Marty Cortez
  • 2,325
  • 1
  • 17
  • 22
22
votes
3 answers

Changing background color in vim at a certain column

I'd like to be able to highlight the wrap margin/text width in vim by changing the background color (or maybe just a line?). A lot of IDEs have this. I mocked up what I'm talking about: Anyone know if this can be done in macvim or gvim?
davetron5000
  • 24,123
  • 11
  • 70
  • 98
22
votes
4 answers

vim redirect output to quickfix

Is it possible to redirect an output of a command to the quick fix window? The command I am running is :!java %:r and was hoping the output would go into the quickfix window
tawheed
  • 5,565
  • 9
  • 36
  • 63
22
votes
3 answers

Changing the Leader in MacVim?

I'm trying to change in MacVim to be something less carpal-tunnel inducing. I have added this line let mapleader="," to my .gvimrc, but "\" is still the only key that works. Am I missing something?
Paul Wicks
  • 62,960
  • 55
  • 119
  • 146
22
votes
2 answers

tmux and Vim: Escape key being seen as ^[ and having long delay

In MacVim and terminal Vim, everything works fine and I have no problems. As soon as I jump into tmux and run Vim there, the escape key starts having a delay of about 1 second and shows up in Vim as ^[. I'll hit the escape key to exit insert mode…
Dustin Martin
  • 1,297
  • 2
  • 12
  • 22
1 2
3
63 64