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

Is there any easy way to toggle "do/end" and "{}" in ruby in Vim?

Is there any easy way to toggle "do/end" and "{}" in ruby in Vim? (TextMate does this with ^{.)
TK.
  • 27,073
  • 20
  • 64
  • 72
7
votes
2 answers

Configure Macvim's text selection to not include character under cursor

Using macvim, when I copy a text selection, it always includes the character under the cursor. For example, if the cursor is at the far left and I press shift-down arrow, it selects the entire line plus the first character of the next line (since…
Steve Kuo
  • 61,876
  • 75
  • 195
  • 257
7
votes
1 answer

vim indenting a block of code inward and outward

I am using mvim . I am trying to map keys so that I could visually select elements then I could indent the code inward or outward. However while doing outward work after every keystroke one more line at the bottom get selected. What is the fix. "…
Nick Vanderbilt
  • 36,724
  • 29
  • 83
  • 106
7
votes
2 answers

Change border-width of splits in VIM

I have been configuring my VIM installation for days now, and it's just a few more days away from heavenly perfect. Only thing that is bugging me however, is the border width of the splits. Is there any way to change the width of these? Or maybe…
Mickel
  • 6,658
  • 5
  • 42
  • 59
7
votes
6 answers

Autoupdate VIM Plugins?

Is it possible to update vim plugins automatically?
1passenger
  • 563
  • 1
  • 7
  • 17
7
votes
1 answer

Maximize window in MacVim on startup

How can I set MacVim to start up with a window that extends the full height (minus menu bar) and width of my monitor (not fullview)? If this impossible on startup, how can I change it manually (not by dragging the window, but with a command)?
user1322720
7
votes
3 answers

How to resize split windows in Vim proportionally?

Ok so first off, this is NOT the answer I'm looking for: autocmd VimResized * :wincmd = Let me explain: Let's assume I have 2 vertically split windows, one at 30% size and one at 70% size. When I resize my window, I want that percentage to stay…
Rey
  • 3,639
  • 5
  • 33
  • 40
7
votes
2 answers

set .vim home directory to something specific

My projects are all under /Users/username/workspace/my_project where /Users/username/ is $HOME. I want macvim to always have the home as /Users/username/workspace/my_project instead of /Users/username/. I understand set autochdir sets the home to…
Matilda
  • 1,708
  • 3
  • 25
  • 33
7
votes
5 answers

How to change current path in Vim automatically?

When I type in terminal something like mvim ./path/to/my/project Vim opens this project directory, in my NERDTree I can see files, but when I try to run some CLI command, like :!touch some/file/in/my/project It occurs, that my current path is my…
Stanislav Mekhonoshin
  • 4,276
  • 2
  • 20
  • 25
6
votes
1 answer

Tab complete from :open in Macvim?

If I open MacVim (specifically janus) and try :open ~/ I get :open ~/^I. How can I get it to tab complete the way one would expect bash completion to work?
aresnick
  • 1,635
  • 12
  • 24
6
votes
2 answers

Color scheme for macvim only - how?

I want to use solarize for macvim, but I want the default for when I am in vi. I assume I put a dew lines of code in my .vimrc... but what do I put in there?
6
votes
2 answers

MacVim: create new file from command line by using `alias mvim="open -a macvim"`

When I use vim newfilename to open a file and this file does not exit, vim will create a new file with the name newfilename. However, MacVim does not work in this way --- i.e. mvim newfilename (alias mvim="open -a macvim") will lead to an error:…
Liw
  • 377
  • 2
  • 4
  • 12
6
votes
1 answer

GVim: Different colors of odd and even lines

Can I create color scheme for GVim (MacVim) where odd lines and even lines will have different colors?
6
votes
2 answers

Overriding MacVim's default filetype.vim when assigning filetypes

In the default filetype.vim that comes with MacVim, I have the following: au BufNewFile,BufRead *.erb,*.rhtml setf eruby I installed MacVim using Homebrew, and I've installed Janus. Following the instructions from Janus, I've created ~/.vimrc.local…
Matthew Rankin
  • 457,139
  • 39
  • 126
  • 163
6
votes
3 answers

How can I use mvim to edit my crontab on Mac OS X (10.6.6)

mvim is installed in /usr/local/bin/ but can not be used as either EDITOR or VISUAL: $ mvim -f # works as expected $ EDITOR="/usr/local/bin/mvim -f" crontab -e crontab: /usr/local/bin/mvim -f: No such file or directory crontab: "/usr/local/bin/mvim…
Lorenz
  • 483
  • 5
  • 11