The name given to the OS X port of gVim, the popular editor.

learn more… | top users | synonyms

1
vote
1answer
328 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 ...
1
vote
1answer
657 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 ...
1
vote
1answer
858 views

In MacVim, how do I disable arrow keys in insert mode?

I have added this to my .vimrc: nnoremap <up> <nop> nnoremap <down> <nop> nnoremap <left> <nop> nnoremap <right> <nop> inoremap <up> <nop> ...
0
votes
2answers
169 views

Making MacVim/gVim “block” the terminal until closed

A long time ago, before I switched to vims, I used an editor for OS X known as TextMate. (Anyone remember that? ;) Its command-line binary, mate, allowed for a mate -w flag, which would block the ...
0
votes
3answers
2k 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 ...
0
votes
1answer
53 views

Should I bother moving stuff from vimrc to gvimrc?

Is is worth moving gui-related options out of my vimrc and into a gvimrc if there's only a couple such options? I'm kind of inclined to keep everything in one place and house gui options inside if ...
0
votes
4answers
63 views

Vim: Jump to previous cursor position, NOT edit point

I am trying to write a tiny macro to append a ; to the end of the current line (A;), then return to the cursor position from which I jumped before executing the macro. C-o and C-i are not what I ...
0
votes
3answers
51 views

Vim - Visual Mode - Improve Word Selection

Gentlemen/Ladies, I do not understand why vim is exhibiting the following behavior when I trigger the shortcut below on visual mode (.vimrc): vmap <script> <C-LEFT> :call ...
0
votes
1answer
71 views

Automatic indentation with MacVim

How can I change the automatic indentation in MacVim? My problem is that when editing a TeX file, every time I type, for example, (, vim decides to indent the line for me. Here is a video of my ...
0
votes
1answer
329 views

Is it possible to launch MacVim NOT in full screen mode?

Whenever I Launch MacVim it takes up the whole screen. I don't want this. Is there any way to prevent it from happening? I run OS X 10.8.
0
votes
1answer
423 views

How to install macvim on OS X 10.7 Lion from its .tbz package?

I got a .tbz file from http://code.google.com/p/macvim/ I am a new Mac User. And i would like to use macvim for my development. How can I upzip this file and make installation for that .tbz file? ...
0
votes
2answers
368 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 ...
0
votes
2answers
652 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
340 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 ...
0
votes
3answers
412 views

Mac OSX: opening .cc files with MacVim instead of Xcode by default

In Mac OSX 10.6.4, I'm trying to change the default application for opening .cc files from Xcode to MacVim, but Xcode or OSX won't abide. Here's a screenshot: Notice how the clicking "Change ...
0
votes
1answer
35 views

Can I change a Vim setting persistently using a shortcut?

Can I change a Vim setting persistently using a shortcut? Hypothetical Example: nnoremap <script> <F7> :call ChangeConfig()<cr> function! ChangeConfig() set virtualedit=all ...
0
votes
1answer
20 views

mvim: display number of columns in window?

I'm transitioning to MacVim from terminal vim, and I've gotten used to the "80 x 24" display at the top of terminal windows (COLS x ROWS). Is there a way to enable some such display in MacVim?
0
votes
1answer
116 views

MacVim commands not working in insert mode

The following shortcuts I have defined in my settings: "Select next/prev tabs noremap <C-Tab> :tabnext<CR> noremap <C-S-Tab> :tabprev<CR> are for going to the previous and ...
0
votes
2answers
338 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.
0
votes
1answer
237 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 ...
0
votes
1answer
201 views

Setting active window on Vim startup

I'm using MacVim with the Taglist plugin, which I want to be open all the time when I start MacVim. So in my .gvimrc I have the following :TlistToggle Which opens the sidebar when I load my MacVim ...
0
votes
0answers
48 views

vim and macvim are not reading my .vim directory

I have installed vim and macvim using macports, and tried copying over my .vim directory from linux. Neither seems to read anything from that directory: my customizations for folding and indenting ...
0
votes
1answer
41 views

Vim completion based on language

Right now if I hit ctrl + n it will complete words that are in the current document. I've also found a way to define a dictionary. I'm just unsure how to get vim to complete based on keywords in a ...
0
votes
1answer
24 views

MacVim: make URLs clickable

I want to be able to click on URLs I see in MacVim. How can I do that? Is that possible?
0
votes
0answers
16 views

MacVim editing sessions keep crashing on my

Never happened before today, but my editing sessions keep crashing in MacVim. It'll work for a while, then suddenly the window disappears. MacVim continues to run, but the session I was working in ...
0
votes
0answers
49 views

Vim uses system ruby and python

I have installed Python and Ruby using Homebrew and RVM respectively and they work fine in terminal, but Vim (both system and MacVim from Homebrew) launches system ones for some reason. :! which ...
0
votes
1answer
53 views

How can I make the active MacVim tab more obvious in fullscreen mode?

When I use MacVim normally and have multiple tabs open, it's easy to see which tab is active because it's much lighter than the others. However, in fullscreen mode, they are all the lighter color and ...
0
votes
2answers
61 views

relativenumber stuck on in MacVim

Some time ago I experimented with the relativenumber setting. It almost never turned on, so I finally gave up and took it out of my .vimrc. Now it seems that every time I open up a new instance, I ...
0
votes
3answers
107 views

How to send custom command to terminal?

Say, I want to run "echo hello" when I press <leader>T How can I write the script? Is there any way to do it nicely? I'm thinking about creating a custom command.
0
votes
1answer
65 views

Going to CSS class in vim

In Sublime Text 2 I used to hit command + t and type in the CSS class I had to go to. How can I do that in vim?
0
votes
1answer
208 views

VimScripting NERDTree

Trying to force cursor to leave NERDTree window on MacVim startup (mvim .) so I could continue make new split-ups and open certain files in them. But it feels like cursor is stuck in the NERDTree and ...
0
votes
1answer
258 views

Building MacVim — missing some available features

When I compile MacVim from source, I use a bunch of flags for configure: ./configure --enable-features=huge ...(enable python,ruby,perl, and c interpreters)... --enable-gui=macvim But when I run ...
0
votes
0answers
89 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
0answers
99 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 ...
0
votes
1answer
557 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 ...
0
votes
1answer
462 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
0answers
423 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 ...
0
votes
1answer
337 views

NERDTree does not open in the directory from which macvim was opened

I upgraded my macvim to 7.3 recently and I can no longer open nerdtree or netw in the directory in which macvim was opened, it always opens in my home directory. For example, If I open macvim in ...
-1
votes
1answer
136 views

How to switch between two Vim windows (two separate instances) on separate monitors

Whats the keyboard shortcut to switch between running instances of Vim?
-1
votes
1answer
111 views

How is OSX supposed to work without a mouse? [closed]

I'm a VIM user so I do buy the no-mouse manifesto. I do everything without a mouse and am more productive this way. OSX is not being very friendly, though. How I'm supposed to navigate through files ...
-2
votes
1answer
53 views

Vim - Using Functions to Search (.vimrc)

I'm have a timing problem with a function that I use to search in Vim. I need the search to be executed immediately, not after the function ends. I'm using "feedkeys" function (eg. ...