The name given to the OS X port of gVim, the popular editor.
1
vote
0answers
255 views
Is anyone using pysmell for vim with luck?
I'm trying to get pysmell (https://github.com/orestis/pysmell) to work - looks like a nice code completion tool for django development in vim.
I'm on Mac OS X 1.7.1 (Lion) with MacVim 7.3 (snapshot ...
28
votes
4answers
10k views
The best way to make MacVim's vim (console, not mvim) the default instead of Mac OS X's vim?
I installed MacVim using homebrew. (brew install macvim). If I call mvim from cmd, it opens the GUI MacVim.
I would like to make vim call the MacVim's Vim ...
1
vote
1answer
218 views
How to create maps for the fn key in MacVim
I've been having some pains in my left little finger, and I'd like to try to alleviate it's task by using the Fn key in Mac keyboards as the Ctrl key in MacVim, since that's where 90% of my action ...
2
votes
1answer
591 views
How do you use snipMate HTML snippets in a PHP file without changing filetype?
Is it possible to use HTML snippets with Vim's snipMate plugin in a PHP file without changing the filetype? I'd like to be able to use the HTML snippets in my PHP files because a lot of times I am ...
0
votes
2answers
473 views
How can I prevent MacVim from showing OS X' Find/Replace dialog when pressing Command-F?
Using MacVim, I'd like Command-f to not show OS X' Find/Replace dialog, but instead beginning a normal search in Vim, i.e. sending / from normal mode.
I.e. I'd like MacVim to use Vim's internal ...
0
votes
0answers
76 views
How to ignore changes made in a NERD_tree windows when closing MacVim?
I'm using MacVim with the NERD tree plugin.
When I close MacVim I get a model window saying There are several documents with unsaved changes. and asking me if I want to save those changes.
That's ...
0
votes
2answers
302 views
MacVim-like keyboard shortcuts in gVim
MacVim has some nifty features like Cmd + S to save Cmd + Z to undo, and so on, is there a port like this for gVim.
3
votes
1answer
552 views
How to configure MacVim to quit on exit?
When I close MacVim using the standard vim command :q, the MacVim window closes, but the program is still running. This causes trouble when other processes try to spawn an instance of MacVim, because ...
3
votes
2answers
1k views
Switch buffers in MacVim
I want to be able to switch buffers (:bn! / :bp!) in MacVim, using shortcuts like
Alt (Option) - Left Arrow Key/Right Arrow Key
So far I wasn't able to do that.
Here's my mapping for the keys, ...
0
votes
2answers
251 views
MacVim symlink points to earlier vim version
Using homebrew I installed MacVim 7.3, but when typing "vim" in terminal it points met to 7.2 version that I installed by downloading MacVim from the web. I must have installed it a while ago and set ...
5
votes
2answers
1k views
vim scrolls very slow when a line is to long
I would never have thought that vim would be so slow. All I have is the following long line:
I run vim (MacVim) under Mac OSX with the terminal app. Here is my vimrc. Hope that it has nothing to do ...
1
vote
1answer
358 views
MacVim IM INSERT MODE
While using MacVim to edit markdown files, when I enter the insert (i) or append (a) mode and type the grave ` character to start or end a line of code, MacVim switches to IM INSERT MODE and sometimes ...
2
votes
2answers
365 views
Move cursor to beginning of non-whitespace characters in a line in Vim
In Vim, is there a way to move the cursor to the beginning of non-whitespace characters in a line? For instance, how can I move the cursor to the "S" in the second line below?
First line
Second ...
1
vote
2answers
298 views
Corrupt vimrc file
I installed janus for my macvim (I am running Snow Leopard) and everytime I go to edit the ~/.vimrc file I get these errors:
Error detected while processing function Edit:
line 7:
E319: Sorry, the ...
0
votes
0answers
90 views
MacVim prints 'ls' output whenever run via the 'mvim' command
Whenever I launch MacVim via the mvim command, I get the output of ls ~ printed to my terminal repeatedly for as long as I'm using MacVim:
$ mvim base.theme.bash
$ ActiveGSLocalData Music ...
4
votes
3answers
770 views
How can I automatically adjust the Gvim/MacVim window to the width of my vertical splits?
My overall goal here is simple, but the specifics are complex:
I want to maintain each vertical split in my MacVim window at exactly 115 columns, regardless of how many splits I add.
The story: I’m ...
1
vote
3answers
468 views
MacVim <K> not working correctly: WARNING: terminal is not fully functional
(This question is posted in vim_mac user group in Google, but I did not get a solution)
When pressing <K> on keyword, in terminal vim it will produce the man
page correctly.
However, in ...
2
votes
1answer
321 views
How to specify shell for vim?
Can I specify my shell for vim? I'm running OS X and have zsh installed via Homebrew and am using MacVim. When I type shell in MacVim, the shell opens up as bash. How can I have it open as zsh?
4
votes
1answer
466 views
How can I open the current HTML file in a web browser from MacVim?
From MacVim is there a command to open the currently edited HTML file in a web browser?
0
votes
3answers
1k views
Mapping keys in VIM on Mac
I had a previous problem that was solved, but it seems I am stuck once again.
I'm trying to reassign the keys for switching between Windows to be more intuitive. I've found that you should be able to ...
8
votes
1answer
3k views
How does one switch between windows on VIM?
I'm using both Vim and MacVim (or well, trying to). I installed the Tagbar plugin but find it impossible to switch to the actual Tagbar window to make my selection.
I've been reading loads about ...
0
votes
1answer
388 views
How to make Vim open existing buffers with NERDTree
I recently discovered NERDTree and Command-T but when I open files that has already been opened I get the really annoying "VIM - ATTENTION Swap file already exists" popup and I click abort and then I ...
1
vote
1answer
569 views
Adding a plugin Vim Folder on a MacOSX
I saw a tutorial on using VIM and I was curious how the user actually added a couple plugins without opening the content of the MACVIM app, but instead by going to the folder plugin using the command ...
0
votes
2answers
508 views
MacVim behaving strangely with my aliases (even setting shell=/bin/bash\ -l)
I wanted to write some scripts and have MacVim call some bash commands. I have some aliases and wanted vim to be able to call them, so I knew I needed a login shell, just didn't know how to make vim ...
0
votes
1answer
268 views
peepopen - macvim - reindex
I am using the peepopen plugin for Macvim.
However, when I create a new file within my Macvim session, it is not visible in peepopen. It is still the original snapshot from when I originally opened ...
1
vote
1answer
71 views
vim - tab awareness
If I am writing code like this in vim:
def my_function
and I hit enter, I would like the cursor to be positioned below the d.
Currently it is positioning the cursor as far left as possible.
How ...
3
votes
1answer
193 views
Vim - Viewing Command line history
Is there a way in vim to view the output of old commands.
For example, if I do:
:! ls
Gemfile Gemfile.lock Rakefile autotest config.ru doc log ...
1
vote
1answer
629 views
How do you set up MacVim to compile and run Java?
I'm reading loads of great things about Vim and MacVim, so I've downloaded it and I've been using it for writing HTML and CSS.
I figure that since I'm new to this whole area, I might as well learn ...
1
vote
1answer
3k views
Change default settings in MacVim
I want to do some changes in MacVim to suit my needs. I'm new in it, so stick with me.
The basic changes I want to do is to start the program with the following settings:
Line numbers activated
Top ...
0
votes
1answer
350 views
Reformat line breaks in Vim markdown file
I recently converted from TextMate to MacVim with Janus for editing my markdown files.
How can I reformat an old markdown file so that lines longer than 79 characters are converted from a single ...
0
votes
1answer
149 views
Permanently change defult application for a file type?
How can I open all files of a certain type with a specific application? For instance, MacVim?
Selecting open with --> other --> select MacVim and checking "always open with" works for individual ...
4
votes
2answers
1k views
textwidth=0 and wrapwidth=0 in .vimrc.local not being respected
I have the following lines at the bottom of my .vimrc.local:
set textwidth=0
set wrapmargin=0
However, whenever I open a new file, both these values are set to their defaults (72 and 2, ...
1
vote
1answer
256 views
“Illegal starting char” error whenever opening MacVim
Whenever I start MacVim, through Finder or through Terminal, I receive the following error:
E575: viminfo: Illegal starting char in line: c/gui_mac.txt
Press ENTER or type command to continue
I ...
12
votes
1answer
2k views
MacVim: Re-map command key combinations like <d-f>
I can remap unused combinations like <d-1> (Cmd+1) in MacVim, but there are many combinations like <d-f>, <d-o> or <d-b> that are already bound to MacVim menu items. If I try ...
4
votes
1answer
3k views
How do you install plugins for MacVim?
Specifically, I'm trying to install NERDtree. I downloaded the 4.10 package from github, unzipped it into ~/.vim/, and restarted MacVim (version 7.3).
Typing :nerdtree results in the following error:
...
2
votes
1answer
886 views
Installing Command-T breaks MacVim
I am trying to install Command-T on MacVim. I followed the installation instructions exactly but I get this error when trying to start MacVim (from a terminal via the mvim command line utility).
...
14
votes
3answers
2k views
copy-paste not working in MacVim when launched in tmux
MacVim's copy-paste stops working when I launch it from a tmux terminal (on zsh). If I exit tmux and then launch MacVim copy-past works. Any idea how to fix this?
2
votes
1answer
179 views
Height of window resizing on tab close for Vim
The tab bar automatically appear when there is more than 1 tab. When down to just 1 tab, the tab bar would disappear and the window resizes in height. The height is shorter by height of the ...
1
vote
1answer
102 views
MacVim does not pick up global mappings from plugins?
I'm trying to figure out why MacVim does not pick up global mappings from installed plugins. I am using MacVim 7.3.87 under OS X 10.6.
I created a file ~/.vim/plugin/testplugin.vim containing the ...
1
vote
1answer
421 views
How do I disable middle-click-pasting functionality in MacVim?
I've been accidentally pasting lately, would like to remove this functionality. Bonus points if I can re-assign the input to another function.
Mac OS 10.6.6, MacVim 7.3
3
votes
1answer
288 views
Change to normal mode when MacVim goes background
Is there any way to leave insert mode automatically once MacVim is put in background, so when I came back it's in normal mode?
Often I change the foremost application an once I come back to MacVim I ...
0
votes
0answers
421 views
MacVim with Mac Keyboard: Where Is the Right CTRL Key? [duplicate]
Possible Duplicate:
Emulating the ‘right ctrl’ key on MacBook Pro keyboard (which lacks an actual ‘right ctrl’ key)
I can't seem to find it... and I want to use it for MacVim to facilitate ...
1
vote
1answer
66 views
Removing @'s in wordwrapped VIM text
Lines in VIM that wordwrapped on show @ on that line instead of the text if any part of the text is off-screen. How do I get it so I can see partial wordwrapped text like other editors?
Before:
...
1
vote
1answer
448 views
Get OS X Terminal.app to accept Ctrl-+ for Vim
I am trying to bind Ctrl-+ and Ctrl-- in Vim to resize the current window. However, Terminal does not seem to pass anything when I press Ctrl-+. Ctrl-- does work.
I checked in Vim itself using Ctrl-V ...
4
votes
1answer
1k views
MacVim + tmux or: The Copy Paste Riddle [duplicate]
Possible Duplicate:
copy-paste not working in MacVim when launched in tmux
Now this is weird.
Copied a chunk of a text from somewhere into clipboard.
Ran mvim from a tmux buffer.
Opened a ...
6
votes
3answers
5k views
How do I move around and otherwise rearrange splits in vim?
So far, I've figured out swapping splits laterally via CTRL+W x, and that's pretty much it.
How do I move a split anywhere in a viewport that contains multiple vertical and horizontal splits?
How do ...
1
vote
1answer
212 views
How can I speed up the first file open from NERDTree in MacVim?
Tried on both macvim snapshot 53 and the recent 55.
When I open a Rails directory with "mvim .", it starts up NERD_Tree. When I open any file, it takes about 5 secs to load on my macbook pro intel ...
13
votes
5answers
759 views
How can I discard my undo history in vim?
Undo is nice to have in Vim. But sometimes, at a known good point, I want to erase my undo history - to be able to use u to undo individual changes, but only back to a certain point. (For instance, ...
11
votes
3answers
5k views
How do I open a blank new file in a split in Vim?
Must be something super obvious, but I can't figure out, and Google is not helping out either.
1
vote
2answers
2k views
Macvim color scheme conflicting with .vimrc
In my .vimrc, I specify that when I do a search, I want the terms to be highlighted - background color yellow, foreground black. Here's how I specify that:
" Settings for terminal version of vim
...