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
0
votes
2 answers

NERDTree opens by default if opening a directory

If I open a folder in vim like this: $ mvim . # or vim . NERDTree opens by default in full width: How can I prevent this from happening and show default VIM welcome screen instead?
jviotti
  • 17,881
  • 26
  • 89
  • 148
0
votes
3 answers

Vim echoing current line after save command

After saving file in vim the current line is echoed shortly, after which file name and 'written' message is echoed. This is ok and I suppose it is a normal vim behavior, but after a while working on more files, some files echo the current line…
aocenas
  • 121
  • 2
  • 8
0
votes
1 answer

Vim (macvim): Alternately read input from keyboard and external program

I've got a python program that reads input from a midi device and produces text output derived from the incoming MIDI messages. As a simple example, let's say that it's simply mapping MIDI Note On events to note names e.g. note_on(60) --> 'C'. I'd…
Mike Ellis
  • 1,120
  • 1
  • 12
  • 27
0
votes
1 answer

Cannot install vim plugins in OS X

This is what I have tried so far: - Regular .dmg install and adding the plugin.vim into the plugin directory in /Applications/mavim/Contents/Resources/runtime/plugins - **homebrew install macvim**. This put the macvim into…
user3523324
  • 1
  • 1
  • 1
0
votes
0 answers

Vim clipboard access on Mac OS X with term=xterm

I am having a weird issue with MacVim running in a terminal and having clipboard access. At first, I could access the system clipboard using both the * and + registers fine. However, Vim by default doesn't handle mouse events, so I found the below…
haridsv
  • 9,065
  • 4
  • 62
  • 65
0
votes
0 answers

How can I debug this Macvim rendering bug?

Apologies if the question isn't succinct or globally useful. I recently updated to Mavericks from Snow Leopard and brought over all of my toolchain. So, this is how my editor typically looks like: My workflow typically involves heavy usage of the…
phillmv
  • 195
  • 2
  • 7
0
votes
2 answers

How to use Chrome tab shortcuts in Vim

I'm used to using cmd-option + arrows to switch between tabs in Chrome. I'd like to do the same in Vim without having to learn vimscript right way. Any suggestions?
freddyrangel
  • 1,353
  • 1
  • 11
  • 20
0
votes
1 answer

Vim shell commands (c flag) behaving differently in bash

If I run this in the terminal (Mac OSX): vim dump.md -c 'vsplit poa.md' -c 'split one.md' -c ':wincmd h' It works great (creates three windows with those files). If I have it as part of a bash script, there's a problem. After doing what it's…
Kyle Cureau
  • 19,028
  • 23
  • 75
  • 104
0
votes
3 answers

Using MacVim and surround.vim - Backspace in Visual Mode surrounds text with ""

I just remapped some keys in my .vimrc and I'm getting some wierd behavior. When I select text in visual mode, and hit the delete key, it surrounds the highlighted text with ""... Here's the relevant pieces of my .vimrc "Using Vundle Bundle…
Joe Susnick
  • 6,544
  • 5
  • 44
  • 50
0
votes
1 answer

Python Unexpected indent on my MacVim

I'm trying to copy paste the below python code to my macvim and i'm getting "Unexpected indent". ## Can build up a dict by starting with the the empty dict {} ## and storing key/value pairs into the dict like this: ## dict[key] =…
h1py
  • 193
  • 2
  • 9
0
votes
2 answers

Spell check only works in one tab in MacVim

If I open a single file with MacVim, and I use :set spell, spell check works fine. However, if I open more tabs within that instance of MacVim, and I use :set spell, spell check does not work for those tabs. Although, it still works for the first…
xvtk
  • 1,030
  • 2
  • 10
  • 18
0
votes
1 answer

Disable NERDTree window when opening file in Vim

Is there a way of disabling NERDTree when opening a file? When I open a file in mvim (using --remote-silent) and a NERDtree window is currently active, the file will open in that (narrow) window. How can I configure Vim to select another window if…
chopper
  • 6,649
  • 7
  • 36
  • 53
0
votes
1 answer

Disable netrw when opening directory

I'm using MacVim and would like to be able to open mvim, set it to the current directory and open a new buffer in one command. Currently I do "mvim ." (where mvim is aliased to "mvim --remote-silent"). However this also automatically opens a netrw…
chopper
  • 6,649
  • 7
  • 36
  • 53
0
votes
1 answer

MacVim Add all project files to buffer list

I'm using MacVim with The NERD tree plugin and am opening my files by navigating to my project directory in terminal and typing mvim *. I'd like to load each of my project files into the buffer list so that I can conveniently navigate between…
dagarre
  • 684
  • 1
  • 11
  • 29
0
votes
1 answer

mvim command in terminal will launch macvim but won't open the file I pass to it as an argument?

I have this weird problem. mvim alias in terminal will launch macvim without problem but if I do, for example ~$ mvim .vimrc mvim will launch on an empty file and .vimrc will be opened in TextEdit.. how can I fix that? This is pretty annoying!
Felix D.
  • 2,180
  • 1
  • 23
  • 37