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
1 answer

macVim statusline has no color until I call ":so ~/.vimrc"

I'm trying to format my statusline in macvim. The formatting works fine, and the status line reflects the following code (stored at ~/.vimrc), but not in regard to the color settings. It displays as default color until i :so ~/.vimrc after which…
coryknapp
  • 69
  • 4
0
votes
2 answers

MacVim - edit color theme for javascript

I am using MacVim with the Cobalt theme. I found it very nice, however, coming from Sublime Text, I feel there aren't enough different colours which makes my javscript code hard to read. For example, I'd like the function name to be coloured to make…
Spearfisher
  • 8,445
  • 19
  • 70
  • 124
0
votes
2 answers

VIM Search - FuzzyFinder to search specific file

I'm newbie at VIM using it as IDE. I'm trying to figure how to open in an easy way files within my "project". I have this configurations in my .vimrc file: colorscheme Tomorrow-Night " nocompatible has to be the first of all ( use the real vimpower…
Cito
  • 1,659
  • 3
  • 22
  • 49
0
votes
2 answers

Is it possible to set `matchpairs` in vim based on filetype?

I want to set the following matchpairs option in vim only if filetype is PHP. set matchpairs+==:; Is it possible to do it? I tried to read the documentation for matchpairs but it doesn't seem to mention any such option.
Sudar
  • 18,954
  • 30
  • 85
  • 131
0
votes
2 answers

Replace pwd with USER in a file

I know that this is quite an easy thing for any advanced Vim programmer, but I have been trying to find a solution for a couple of hours now. In my results file, there are certain lines like: /Users/name/Project/Task1/folder1 : INFO : Random Info…
Jatin Ganhotra
  • 6,825
  • 6
  • 48
  • 71
0
votes
1 answer

MacVim find and replace using regular expression

I have a CSV: 21-Aug-96,S,S,S,S,S,N The S are supposed to be true, and the N are supposed to be false. I'm trying this command con MacVim: :%s//^[S]$//tue/g But it throws a "trailing characters" error. What am I doing wrong?
Oscar Swanros
  • 19,767
  • 5
  • 32
  • 48
0
votes
2 answers

Addling Line Break in Vim with Substitution

There is a really helpful article on Vim's wiki here that is nearly exactly what I want to do, I think I'm just missing something small. I would like to take this line: <%= simple_form_for(resource, as: resource_name, url:…
Anthony
  • 15,435
  • 4
  • 39
  • 69
0
votes
1 answer

Selectively Enable/Replicate System Menu or Otherwise Show All MacVim Window Instances

I have this in my '~/.vimrc' (among other things): set guioptions += M set guioptions -= m to disable the menus in MacVim. I find that leaving out the '+=M' results in lots of keys being mapped (the menu hot keys etc.). There is one facility…
Jeet
  • 38,594
  • 7
  • 49
  • 56
0
votes
1 answer

How can I get MacVim to properly indent my .vimrc

I'm going through the VimCasts.org archive of videos and number 5 covers using Vim's auto-indentation to format source code. I see it working properly in my Objective-C file but not my .vimrc. My tab settings are as follows: set tabstop=2 set…
Chuck
  • 4,662
  • 2
  • 33
  • 55
0
votes
1 answer

Resizing Vim Vertical Scroll Bars in Tmux

Currently my vim set up with two vertical sessions/panes looks like this: I want to move those vim vertical scroll bars over to the middle of the Tmux pane so the vertical scroll bar & the edge of the tmux pane are identical. I take it something…
Anthony
  • 15,435
  • 4
  • 39
  • 69
0
votes
1 answer

Vim directory with macvim/terminalvim

I am using mac vim in terminal via /Applications/MacVim.app/Contents/vim By now I didn't really care about what was in the MacVim directory in /Applications/MacVim.app/Contents/Resources/vim/runtime and still somehow I had proper syntax highlighting…
mike
  • 791
  • 11
  • 26
0
votes
1 answer

What have I done to VIM?

I am trying to figure out what I have done to this source file in VIM (Mac VIM). I was attempting to use the > keyboard shortcut to intent the selected block of code and have obviously done something else to the file. It only effects the text I…
Adam Lewis
  • 7,017
  • 7
  • 44
  • 62
0
votes
0 answers

A keybinding in vim has stopped and I'm stumped

I set up a key binding in my .vimrc to allow me to use silver-searcher for quick string searches across my apps. Currently my .vimrc looks like this: " .vimrc set shell=/bin/sh " load up pathogen and all bundles call pathogen#infect() call…
Anthony
  • 15,435
  • 4
  • 39
  • 69
0
votes
1 answer

MacVim blank screen on startup with simple session-restore function

So, I've added this function to my gvimrc, trying to get MacVim to re-open the same windows / same files, when rebooting. " http://stackoverflow.com/questions/7955232/making-macvim-reopen-with-files-open-when-closed " save and close all files and…
ELLIOTTCABLE
  • 17,185
  • 12
  • 62
  • 78
0
votes
1 answer

Making JavaSciptLint more configurable

I am using mvim with plugin JavaScriptLint. It works great. However sometimes I work on jQuery or other JavaScript libraries and every single time I save the file, I get tons of warning and cursor moves to the very first warning. What I would like…
Neeraj Singh
  • 2,116
  • 4
  • 19
  • 24