Questions tagged [macvim]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
4k 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
0 answers
20 views

MacVim doesn't open a window (except from Terminal, and then only one window)

If I start MacVim from the dock, it launches, but it doesn't have an open window. File / New Window and File / New Clean Window are grayed out (and of course don't do anything). If I start MacVim from ...
3 votes
3 answers
5k views

Vim + iTerm2 color issues

I have trouble with the right Vim configuration. I'm using the latest version of Vim as well as the latest version of iTerm2. I try to get the solarized colorscheme working, but without luck so far. ...
67 votes
8 answers
36k 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 ...
35 votes
3 answers
19k 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. I know two basic commands do to "...
1 vote
0 answers
371 views

Neovim Slow Cursor Blinking

I'm trying to switch from Macvim to Neovim, but running into an issue that I can't figure out. I can't get guicursor to fully work. I say fully work because some of it does, e.g. setting ver25 or ...
129 votes
4 answers
128k 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 ...
1 vote
1 answer
477 views

Self Built MacVim on OSX 10.6 doesn't open a GUI window

I've noticed the MacVim downloads page has stopped uploading pre-compiled snapshots for OSX 10.6 (only 10.7 is supported now, with 10.6 considered LEGACY). I'm still using 10.6 and wanted to build it ...
1 vote
2 answers
836 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 ...
4 votes
1 answer
478 views

Vim NERDTree increases the command line size and doesn't shrink it back

I am using MacVim 9.0 with NERDTree. Some commands in the NERDTree cause the command line to increase in height to display the full command description. (For example, pressing m in the NERDTree window,...
20 votes
5 answers
13k views

Shortcut to switch tabs in MacVim

Are there any shortcuts to switch the Tabs from one to another in MacVim? Any tips to bind the shortcuts myself in .vimrc like ⌘ + 1 for Tab 1 and ⌘ + 2 for Tab 2. For example, like switching browser ...
1 vote
2 answers
641 views

MacVim - how to make mouse based selection be "visual mode"?

Sometimes I select text in vim using the mouse. I'd like that selection to be treated the same as a visual mode selection, so I can immediately start running commands against it. Is there a way I ...
1 vote
0 answers
94 views

Mac OS, How to run an executable that takes input in vim?

In competitive programming, we often have some small input we want to test our C++ program on. I already know of being able to remap some keys to make vim compile and run the executable. However, I am ...
5 votes
2 answers
10k views

Homebrew “linkapps” command not found. What can replace it so I can use MacVim as default editor for some file types?

My Homebrew version is: Homebrew 1.7.1-114-g545eb91 Homebrew/homebrew-core (git revision 279277; last commit 2018-08-04) When I run: brew linkapps The response I get is: Error: Unknown command: ...
104 votes
9 answers
63k 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 (/Users/user/Applications/MacVim.app/...
76 votes
5 answers
28k 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 ...
15 votes
7 answers
5k 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 ...
3 votes
3 answers
2k views

Emulate Typewriter Scrolling in Vim

I've been using WriteRoom for a while for all my distraction free writing needs. But since I recently decided to move to Vim (or more specifically, MacVim) I've tried to reduce my usage of other text ...
35 votes
3 answers
20k views

How to use vimium to select text from a page

Background I'm a religious fanatical devoted believer of vimium. It speeds up my internet usage like nothing else. I'm also (naturally) a heavy user of vim itself. Question How can I actually select ...
9 votes
5 answers
4k views

VIM - leaves .swp files after crash

I use MacVim (snapshot 51) to edit a the Python/HTML/etc files in moderately sized project. Every few months my system locks up or crashes, and Vim leaves a plethora of .*.swp files around. When I go ...
10 votes
1 answer
3k views

Selecting the "Don't Save" button using the keyboard

In MacVim, when you try to close a window with unsaved changes (by pressing cmdw), a window pops up to confirm, with 3 buttons: Don't Save Cancel Save... The third one is blue, the others are ...
0 votes
1 answer
2k views

macOS Console Vim Python3 Install

I know this question has been asked in many various forms, but I have not yet been able to get any of the answers to work. If anybody can point me in the right direction, it would be greatly ...
5 votes
3 answers
11k views

Vim: Shortcut to move to beginning of next line / end of previous line?

Is there any shortcut in vim to move to the beginning of the next line or the end of the previous line? Is there any way to do it without having to use $ or ^? Also, is there any way to make it so ...
2 votes
2 answers
505 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?
1 vote
0 answers
297 views

Why Won't Deleting vimrc Reset Vim Settings? (Mac)

I reinstalled Macvim using Homebrew, deleted and reinstalled both the vim folder at /usr/shared/vim and vimrc. When I open text files with vim the settings are the same and any changes I make to the ...
2 votes
1 answer
2k views

How to move from insert to replace/overtype mode in vim

How can you switch from insert mode to replace/overtype mode in vim? In windows/*nix I just hit the insert key twice (command->insert->replace), but unfortunately i'm stuck on a mac now which doesn't ...
1 vote
2 answers
464 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 ...
-1 votes
1 answer
65 views

In macvim, can i keep cmdheight=1, without getting a prompt before opening some files?

In vim, can i keep cmdheight=1, without getting a prompt before opening some files? My issue is that if I do ~/whatever$ vi app/controllers/application_controller.rb Then because app/controllers/...
1 vote
1 answer
152 views

VIM startup symbols in status

I am trying to move to VIM as my main text editor, already spent a lot of time setting everything and reading about VIM. Now everything is pretty much ok, except one thing that bothers me all the ...
5 votes
5 answers
2k 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
2 answers
1k 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 ...
2 votes
1 answer
289 views

MacVim - CTRL+C only exits insert mode after arrow key press

Before today, CTRL+C would exit insert mode in MacVim just fine. As of today, when I press CTRL+C, nothing happens until I press an arrow key. Only then does it exit insert mode. If I press some other ...
64 votes
3 answers
58k 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 ...
4 votes
4 answers
3k 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 ...
0 votes
1 answer
131 views

Application (MacVim) menubar went dark. How can I fix it?

Recently, MacVim menubar decided to go dark: It is very hard to read black text on a black menubar. How can I make the menubar grey again? I am using MacVim 8.1.560 in MacOS X 10.12.6.
8 votes
2 answers
2k 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.
45 votes
4 answers
71k 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 (...
1 vote
0 answers
221 views

Vim session with splits with remote ssh files

I use to use vim session to keep my opened files. I do it remotely, ssh remote machine and do things there. Today I tried to open remote files in local Vim, I mean with netrw: :e scp://user@remoteip/...
1 vote
1 answer
511 views

Launch macvim in Mac terminal in current directory

I know that I can open macvim in terminal using open -a macvim. The problem is it opens in the user home directory. How can I open it so the directory is in the current directory?
13 votes
10 answers
9k 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, /usr/bin:/bin:/usr/sbin:/...
2 votes
0 answers
128 views

Vim movement delay on lines with 40 or more symbols

I like to visually delimit source code by long comment lines: In C++ I use 80 / characters, in Python I use 80 # characters, etc. Over the years I've noticed that Vim occasionally hiccups (stops ...
19 votes
2 answers
23k 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?
2 votes
0 answers
572 views

Vim - Detect Caps Lock Status

My question is simple and straightforward! =D In this thread @OsQu... Vim - Is Capslock on? ... says that you can use the Automation Hotkey Scripting (AHK) below to detect the Caps Lock (on/off) ...
1 vote
1 answer
610 views

Vim: remap 'D' modifier on linux

I'm using Mac-oriented vimfiles with linux. In this config modifier D (Cmd key on Mac) is intensively used. I don't want to change every D to M, but I want to remap D to something like Meta or Alt. Is ...
3 votes
3 answers
1k views

Minimizing the toolbar in MacVim on OSX Lion

In previous versions of OS X it was possible to minimize the top toolbar of most applications due to a small button in the top right of the window. In Lion however it seems that this has been replaced ...
1 vote
1 answer
418 views

Disable confirmation for loading file on file changed (MacVim)

This question specifically regards MacVim (for OS X). MacVim detects if the file changed on the disk. However, it's asking for confirmation / selection every time: I want it to use Load File or Load ...
1 vote
1 answer
3k views

Setting alias to use Macvim in terminal instead of standard Vim

I want to use MacVim console app instead of a standard vim. In order to accomplish that I try to set alias: alias vim="/usr/local/Cellar/macvim/8.0-119_1/MacVim.app/Contents/MacOS/Vim" But for some ...
6 votes
2 answers
5k 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
2 answers
871 views

Plugins configuration file for Vim

I'm quite new to Vim, and, since I'm writing my very own .vimrc file, I was wondering if there is a way to store all the commands relative to a certain plugin configuration in one external file, in ...
4 votes
2 answers
2k views

Is there any way to use multiple fonts simultaneously in Vim?

I'm looking to use Consolas and Helvetica (for example) within the same buffer.