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

learn more… | top users | synonyms

0
votes
0answers
34 views

change the font style only for attributes in MacVim

I have the font called Operator Mono Light,and am using it in Macvim. My question is in Vim, can I get the font changed to the Italic version of Operator Mono ONLY for attributes like in this ...
8
votes
5answers
3k views

MacVim is not found by Spotlight

I'm a Mac Noob but generally a power Linux user. My new job handed me a fresh MacBook Pro with Lion installed. I installed MacVim successfully using homebrew. I'd love for it to be the default app ...
28
votes
2answers
20k 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 ...
31
votes
2answers
9k views

Where does VIM (gvim/macvim) keep swap files for unsaved/unnamed buffers?

Where does VIM (gvim/macvim) keep swap files for unsaved/unnamed buffers? (If it does so at all). Background: Throughout a semi intense seminar I was taking notes in an unnamed/unsaved MacVim buffer ...
0
votes
0answers
17 views

MacVIM not displaying tab/buffer line in Fullscreen mode on OSX Captain

I used :Fullscreen command to send the MacVIM to full-screen mode. (This is a function in "vim-shell" written by xolox, available on Github through the author.) Everything worked fine (I started Vim ...
1
vote
1answer
88 views

MacVim doesn't display on El Capitan

I just upgraded to El Capitan installed MacVim 7.3. When I start it there is no display just the menu bar. Is there some magic incantation I need to perform?
1
vote
1answer
415 views

How to adjust statusline height in MacVim?

I just installed powerline for mvim. It works fine except my statusline is a bit too big which makes it look weird: How can I fix this?
21
votes
3answers
5k views

Vim scrolls very slowly when a line is too long

I would never have thought that Vim would be so slow. All I have is the following long line: (Click image to enlarge) I run Vim (MacVim) under Mac OS X with the terminal app. Here is my vimrc. I ...
1
vote
2answers
482 views

MacVim always return focus to terminal upon leaving

I'm running Mavericks and I recently started playing around with sshfs to try to boost my productivity by using MacVim (I've been using in-terminal vim for a few years now). I really like MacVim. I ...
0
votes
0answers
13 views

Installing MacVim issue with 'src/' directory and ./configure command

The MacVim Readme_mac says I need to cd to a directory called 'src/', but it doesn't exist by default. Should I just create it or does it absence raise a flag? also when I do $ ./configure --help it ...
1
vote
1answer
21 views

How can I unconditionally open any fold present, without errors, when invoking from the command-line?

So, this is similar to ‘execute command with range silently’; but that's in a mapping, and so the solution isn't applicable to what I'm trying to do. I'm using the Skim PDF-viewer with LaTeX Sync, ...
1
vote
3answers
867 views

How to point MacVim to the right perl on OSX 10.10?

When I try to use MacVim from the command line, I get dyld: Library not loaded: /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/libperl.dylib Referenced from: ...
0
votes
3answers
484 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 ...
1
vote
0answers
75 views

MacVim switching tabs & El Capitan split screen

Using El Capitan's split screen feature, I'd like to have MacVim open in the left half and Terminal open in the right half. This works fine, until I try to switch tabs in MacVim via the keyboard ...
0
votes
0answers
9 views

MacVim cmd+a (select all) no longer works

I haven't tweaked my .vimrc for MacVim in a while. But I notice recently cmd+a no longer works. Instead it clears the buffer and types a g instead: When I go: :verbose nmap <D-a> It says: no ...
78
votes
6answers
37k 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 ...
0
votes
0answers
162 views

MacVim.app doesnt open any edit windows

i installed macvim with brew install macvim brew link macvim brew linkapps i am on os x el capitan, but had same problem on yosemite if i go to /usr/local/Cellar/macvim/7.4-80/bin and execute ...
1
vote
1answer
30 views

How can I treat a logical block as a text object in Vim?

Here's a situation I'm in every day: 0 .outer_selector { 1 2 .inner_selector { 3 margin: 0; 4 padding: 0; 5 6 input { display: none; } 7 } 8 9 } Now I want to cut and paste the ...
1
vote
0answers
17 views

How do I get Dash Doc App to respect indentation on MacVim?

Couldn't do the same as the answer in the question below. How do I get Dash Doc App to respect indentation? Has someone run into the same problem with Vim? -- Edit: I can't reuse the question ...
0
votes
2answers
169 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 ...
16
votes
3answers
5k views

How do you set the default window size in MacVim?

The default window size appears to be 24x80 but I'd prefer to set it so new windows appear in the size 50x90. Is there a way to set this default?
4
votes
2answers
884 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.
4
votes
3answers
2k 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 ...
4
votes
3answers
2k views

How can I add some padding to the macvim text area

I would like to add some padding between my text and the left edge of the window (or the right edge of the line numbers).
12
votes
2answers
6k views

How do I only dp or do just the lines, not the entire block in Vim diff?

I'm currently using MacVim (Snapshot 64) "Split Diff by..." menu option. The file is Django's my settings.py from version 1.3.1 to a fresh file from version 1.4. (Open the image on a separate ...
0
votes
1answer
1k views

Compiling vim with python support - installing powerline

I spent all day yesterday backing up my hard drive, clean installing Mac OSX Yosemite, and now I'm trying to get all my stuff in order like it was before. I have powerline installed properly (it ...
0
votes
1answer
40 views

Keep window size when resizing font in MacVim

When changing the font size in MacVim on OSX (Cmd +,Cmd -), the window is resized as well. Is there a setting that makes MacVim keep its window's size, when the font is resized?
0
votes
1answer
27 views

“Cmd”+“Shift”+“N” works in MacVim but not terminal VIM

I use iTerm2 on Mac OS X 10.10 (Yosemite) and I installed YADR and that comes with all its configurations and mappings. One of the mappings maps Cmd+Shift+N to NERDTreeToggle. This however works in ...
0
votes
1answer
55 views

Replace terminal's vi with windowed vim for root

I'm on Mac OS X, but I guess this is the same for other unixes. Every time I type vi on the terminal, I want to open the GUI version of Vim (in Mac OS it's called mvim). For my user, I got it ...
2
votes
1answer
89 views

Check if vim is compiled with +X11 in .vimrc

I have two copies of vim installed. One is installed with macvim and necessarily configured with -X11 (to work with Cocoa), while the other is configured to +X11 (used in terminal, to work with a ...
2
votes
1answer
246 views

MacVim / Vim retain content of all buffers (like Sublime Text). Preserve swap?

TL;DR: Can Vim store its swap files, and loads the same set of swap files and buffers on load every time? I'm on a Mac (OS: Maverick), where a number of application keeps the data in some sort of ...
23
votes
4answers
4k 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 ...
0
votes
1answer
223 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
3answers
208 views

mapping jj to escape in macvim works but not in terminal vim

In my vimrc I have: inoremap jj <ESC> Using the latest macvim I can hit jj and i'll jump from insert to command mode, but using the same vimrc with just regular vim in iterm2 it just inserts ...
2
votes
1answer
50 views

why is vim calling this script on startup?

I'm trying to use a custom color scheme. On startup, I can see that vim is loading my scheme, but after that it loads another scheme, overwriting mine. Here's the output of :scriptnames: 1: ...
0
votes
1answer
597 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
397 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
276 views

VIM Crashes/Freezes on specific files Mac OSX Mavericks

I've recently switched over to using VIM and use a friends .vimrc that works well for him https://github.com/dtothefp/dotfilesv2/blob/master/vim/vimrc.symlink I first installed vim through Homebrew ...
0
votes
1answer
392 views

Inconsolata font with powerline support and italics

Is there an Inconsolata font package with italics and support for powerline? I have only been able to find: powerline-fonts - has powerline support but no italics Inconsolata-LGC - has italics but ...
0
votes
1answer
248 views

Vim conceal feature is applied to active line

I am using MacVim with the vim-latex plugin. There is a conceal feature turned on by default that converts LaTeX symbols to unicode in vim itself so the source is easier to read. I think this is ...
0
votes
1answer
2k views

Open Macvim within terminal without opening a new window

Every time I try to edit a file, I do mvim file.txt in the terminal then a new MacVim window pops up. But if I do vim file.txt, it will not open a new window. Instead, it will initialise vim within ...
1
vote
1answer
544 views

Vim - How Recognize Spaces as Tabs (set listchars=tab)

I wonder if it is possible to use a configuration for that command "set listchars=tab:▒░,trail:·" to "see" 4 spaces as tabs and get the effect of the picture below (using real tabs)... I use the ...
16
votes
3answers
26k views

Vim in OSX: How to do page-up/page-down/go to EOL through a vim file opened in terminal?

In putty, which is how I primarily used VIM, I could do the following: Page up/down : Using the native Page up/down key. In Mac, the alternative is Fn + Up/Down, which doesn't work in the terminal ...
2
votes
4answers
1k views

Macvim lags while Vim on terminal is buttery smooth

I am running OS X Lion 10.7.3 and Macvim runs significantly slower than vim on the terminal for me. All movement commands in Macvim are much slower. Moving up and down in visual mode is equally as ...
2
votes
2answers
2k views

Opening files with MacVim from command line

From my command line I'm inputting the command open .lists This is opening the text file in TextEdit. I'm pretty sure some file extensions will open with MacVim. I'm unsure how to get all text ...
0
votes
3answers
116 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 ...
-2
votes
1answer
90 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. ...
9
votes
8answers
6k views

$PATH in Vim doesn't match Terminal

I'm using MacVim and when I don't launch it from the Terminal (mvim) its $PATH does not include what I have set in my .bash_profile. It only seems to have the default values, ...
5
votes
4answers
4k views

Is there a way to forward-delete in insert-mode in vim?

Is there a way to forward-delete in insert-mode in vim? I'm using a MacVim. I tried "Control-D", but it obviously doesn't work. I'm searching the official documentation, but cannot find. Any help ...
0
votes
1answer
64 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 ...