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

vim and NERD Tree: Can NERD Tree persist across tabs in MacVim?

When using NERD Tree on MacVim, I can open a file in a new tab by using 't' (or 'T' to open it in the background) in the NERD Tree window, but when I switch to that tab, the NERD Tree window is no longer visible since it remains in the original tab.…
Aaron Massey
  • 3,826
  • 1
  • 28
  • 26
17
votes
1 answer

How to run Vim commands from Terminal

My questions is one that I haven't seen answered, the usual question is how to run certain commands to a file. My question is how to run Vim commands or functions, from outside Vim (i.e. Terminal), these wouldn't affect any file, just Vim itself. Is…
greduan
  • 4,770
  • 6
  • 45
  • 73
17
votes
2 answers

Command key in MacVim

How do I use the command key in MacVim? For example I would like to be able to press Cmdt to open CtrlP or Cmdn to open NerdTree.
Andy
  • 841
  • 2
  • 8
  • 15
16
votes
3 answers

tComment Vs. The NERD Commenter

I'm switching from TextMate to MacVim. Which should I use and why? tComment or The NERD Commenter
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
15
votes
3 answers

What is the difference between MacVim and Vim?

I am trying to get started using VIM on OSX but I am having trouble trying to see which one I should use? I can go to terminal and type vim and the editor comes up, but I have also been reading up online and some people say to use MacVim. I am not…
Kevin
  • 153
  • 1
  • 1
  • 4
15
votes
2 answers

How to install plugins in vim using vundle?

I am using Vundle to install YouCompleteMe (YCM). However, I am unable to install it (the installation guide just says running :PluginInstall, but not what to do once the following page opens): I tried hitting buttons like return, etc. but they…
user6490375
  • 424
  • 1
  • 4
  • 13
15
votes
12 answers

Reasons for using command line Vim versus GUI Vim

Background I'm building an application where it detects what documents you're using from the file system. To do this it must access the AXDocument attribute of the active window. MacVim provides this. Running Vim in the Terminal wouldn't provide…
John Gallagher
  • 6,208
  • 6
  • 40
  • 75
14
votes
4 answers

VIM as an IDE - Suggestions

I am looking for recommendations on using VIM as an IDE. I generally code in a number of programming languages, including C, C++, assembler, MATLAB, Maple, BASH scripts, to name a few. In general, I like to use a single IDE for the bulk of my…
Cloud
  • 18,753
  • 15
  • 79
  • 153
14
votes
3 answers

Vim - Visual Block : Delete rather than insert

I often use visual block then inserting on multiple lines when for example commenting out a lot of code. This is great for inserting text in the same position on multiple lines but I can't figure out how to delete this text later using visual block…
henry.oswald
  • 5,304
  • 13
  • 51
  • 73
14
votes
4 answers

How can I escape the % and # characters in a Vim command?

I'm using Ack (https://github.com/mileszs/ack.vim) with the --literal flag to search through projects in Vim. I noticed that whenever I search for a string with the % or # characters, the search doesn't match things as I'd expect it to. I did some…
John Debs
  • 3,714
  • 2
  • 25
  • 35
14
votes
2 answers

MacVim: Turn off anti-aliased fonts with advanced rendering enabled

With MacVim, I use the Monaco font at size 10, which under the standard MacVim config is NOT anti-aliased. When I turned on Advanced Rendering in MacVim preferences (advanced tab), Monaco 10pt is now anti-aliased, which is not what I want. Is there…
jtrim
  • 3,465
  • 4
  • 31
  • 44
14
votes
2 answers

vim: is there a plugin to show all of your TODO tags in source?

Like most of you, I work in several source files of code every day. A lot of the time, my insane work flow has me doing stuff like: # TODO # clean up this code # do something else with this code Is there currently a vim plugin available that will…
randombits
  • 47,058
  • 76
  • 251
  • 433
13
votes
8 answers

Strikeout text in vim?

Does Vim (with or without a plugin - I don't care) support strikethrough text at all? I've found myself keeping a running list of "TO-DO's" in it, and would like to be able to "cross off" my done items, via strikethrough text. Thanks!
Connor
  • 4,138
  • 8
  • 34
  • 51
13
votes
4 answers

On keystroke insert line of code in (mac)vim, for pdb

I'm looking for the way to insert a line of code with a keystroke like leaderp in Macvim I want to insert the following line of code: import pdb; pdb.set_trace() Probably not an unheard of line of code in python land
Sjoerd
  • 257
  • 2
  • 9
13
votes
2 answers

Dynamic vim font size based on file length

I want vim (MacVim) to default to a large font for new/short files and dynamically scale down to a smaller font (to a set minimum) as the number of lines grows. Is this possible to do with a plugin? What vim concepts will I need to know to write…
gouch
  • 135
  • 5