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

Use the :g command in vim with multiple actions

How can I use something like this? :g/^$/kJ Here kJ are two commands, instead of just one (like 'd') My concrete example: I have multiple lines looking like this queryBuilder .append("xyz"); and I want to make them look like…
kadrian
  • 4,761
  • 8
  • 39
  • 61
6
votes
3 answers

Automatically expand fold when going to a line number

Is there a way to unfold code when going to a line number? For instance I type :35 where line 35 is folded, then I have to unfold that section manually to actually get to that line. I would like to type :35and have that code then unfolded…
dc-
  • 1,878
  • 1
  • 15
  • 15
6
votes
3 answers

Turn on Ack in MacVIm

I'm new to MacVim and have installed Janus. I can't figure out how to search my project using Ack.vim. For janus it says "Customizations: Janus rebinds command-shift-f () to bring up :Ack." But when I do command-shift-f I get this message: The…
AdamT
  • 6,405
  • 10
  • 49
  • 75
5
votes
1 answer

How do I open a new file from Terminal to a tab instead of a new window on MacVim?

I moved mvim to /usr/local/bin, so from Terminal if I type mvim file.html, then MacVim will open in a new window and open the file file.html. But if I open another file from Terminal, then it will open another MacVim window. Is it possible open the…
hobbes3
  • 28,078
  • 24
  • 87
  • 116
5
votes
1 answer

UltiSnips not triggering correctly

I'm using UltiSnips. http://www.vim.org/scripts/script.php?script_id=2715 Everything works. Let's say when I type st it inserts submit_tag…. But if st is in between other characters, it won't work. For example: foostbar Anyway to…
Christian Fazzini
  • 19,613
  • 21
  • 110
  • 215
5
votes
1 answer

Increase Vim's Scrolling Speed

I don't like the way MacVim has such a slow scrolling speed, ( Was faster on gVim, Ubuntu ), is there a way to speed it up ?
Rigel Glen
  • 1,289
  • 3
  • 14
  • 20
5
votes
2 answers

How do I remap control-shift-leftmouse in gvim?

I'd like to remap a modified click in gvim (and also MacVim), but certain combinations of modifiers work while others do not. In gvim on a Linux box, I would like to insert "hello" anywhere I type: :noremap
Seth Johnson
  • 14,762
  • 6
  • 59
  • 85
5
votes
1 answer

How to define my own highlight colors to use with matchadd() in vim?

I recently found this little piece of code for my .vimrc if has("autocmd") " Highlight TODO, FIXME, NOTE, etc. if v:version > 701 autocmd Syntax * call matchadd('Todo', '\W\zs\(TODO\|FIXME\|CHANGED\|XXX\|BUG\|HACK\)') autocmd Syntax *…
David Tuite
  • 22,258
  • 25
  • 106
  • 176
5
votes
2 answers

How do I get a specific file extension to behave as if .html in .vimrc file?

I am using MacVim and have colours set on .html documents. I working on various projects that are using the Sparkview Engine for .Net MVC. These files end in .spark. How do I in my .vimrc file set the .spark extensions to map to .html so all my…
DigiKev
  • 1,071
  • 3
  • 11
  • 19
5
votes
3 answers

Using Tabularize plugin

How can modify this… pt1 = [0, 1, 0] pt2 = [0.588, -0.809, 0] pt3 = [-0.951, 0.309, 0] pt4 = [0.951, 0.309, 0] pt5 = [-0.588, -0.809, 0] …to make it look like this… pt1 = [ 0, 1, 0] pt2 = [ 0.588, -0.809, 0] pt3 = [-0.951, 0.309, 0] pt4 =…
sidyll
  • 57,726
  • 14
  • 108
  • 151
5
votes
1 answer

vimrc is not loading when I run mvim

I just switched to using vim, and am working on my vimrc. My problem is MacVim is not loading my vimrc when it opens, I have to explicitly run :source ~/.vimrc for my settings to be applied. Any ideas what I can do?
trobrock
  • 46,549
  • 11
  • 40
  • 46
5
votes
2 answers

using rails.vim Rake run spec in MacVim, how to get colored output

when using Rake to run a spec, the output in quickfix is not colored, meaning, it doesn't have green for passing specs and red for failing specs. Is this something solvable? Thanks for any hints.
yiwen
  • 1,057
  • 1
  • 12
  • 17
5
votes
2 answers

Can't configure VIM for Dvorak keymap

Could someone help me to configure Dvorak keymap for VIM? I want to configure my Dvorak keymap to work in VIM, but I want to leave QWERTY keys in navigation/visual mode. (hjkl for navigation and etc.). I have tried to add .vimrc file to my HOME…
LiveReload
  • 53
  • 6
5
votes
4 answers

Subversion with MacVim configured as the editor

I'm using Subversion to checkin a file on OSX. I have my EDITOR variable configured to MacVim My .profile includes: export EDITOR=/Applications/MacVim/mvim When I checkin with the -m option (svn ci somefile), MacVim gets launched but then…
Steve Kuo
  • 61,876
  • 75
  • 195
  • 257
5
votes
2 answers

MacVim set as default text editor: How to set files to open in a new tab as opposed to a new window?

I've set MacVim as my default text editor, and when I double click files it opens up a new window. Is there a way to set it to open up in a new tab instead?
Mike Ton
  • 83
  • 1
  • 6