Skip to main content

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
56 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 ...
user10543's user avatar
1 vote
0 answers
431 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 ...
Brian Ray's user avatar
  • 111
4 votes
1 answer
490 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,...
Tim's user avatar
  • 1,727
1 vote
0 answers
100 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 ...
James Eade's user avatar
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 ...
S. Thornhill's user avatar
1 vote
0 answers
318 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 ...
Samuel Nelson's user avatar
-1 votes
1 answer
69 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/...
barlop's user avatar
  • 24.3k
1 vote
1 answer
159 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 ...
DeltaBravo's user avatar
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 ...
someguypq's user avatar
2 votes
1 answer
293 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 ...
Exudes's user avatar
  • 23
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.
Jeff's user avatar
  • 642
1 vote
2 answers
732 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 ...
Brad Parks's user avatar
  • 3,066
1 vote
0 answers
229 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/...
KcFnMi's user avatar
  • 604
6 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: ...
tga's user avatar
  • 161
1 vote
1 answer
534 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?
Coltrane58's user avatar
2 votes
0 answers
135 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 ...
Anders Johansson's user avatar
36 votes
3 answers
21k 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 ...
abbood's user avatar
  • 1,284
2 votes
0 answers
587 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) ...
Eduardo Lucio's user avatar
1 vote
1 answer
471 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 ...
LetMeSOThat4U's user avatar
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 ...
Alex Smirnov's user avatar
0 votes
2 answers
878 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 ...
g_rmz's user avatar
  • 305
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 ...
janos's user avatar
  • 3,425
1 vote
1 answer
622 views

Open file in new window from macvim

In MacVim, I can use :e file to open a file in a new buffer or :tabe file to open a file new a new tab. How can I open a file in a new window? I would be happy with ⌘+N followed by :e file, but that ...
Jeff's user avatar
  • 642
1 vote
0 answers
205 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 ...
llinfeng's user avatar
  • 1,310
0 votes
0 answers
27 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 ...
wide_eyed_pupil's user avatar
1 vote
1 answer
171 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, ...
ELLIOTTCABLE's user avatar
  • 2,535
1 vote
0 answers
185 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 ...
Richard's user avatar
  • 31
1 vote
1 answer
212 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?
Coltrane58's user avatar
2 votes
1 answer
788 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 ...
Pavel K.'s user avatar
  • 131
3 votes
1 answer
119 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 ....
Sasgorilla's user avatar
1 vote
0 answers
40 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 ...
ARthur MOUra CARvalho's user avatar
0 votes
1 answer
178 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 ...
Schrute's user avatar
  • 117
1 vote
4 answers
3k 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: /Applications/MacVim.app/...
Climbs_lika_Spyder's user avatar
0 votes
1 answer
74 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 ...
mikelowrey23's user avatar
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 ...
aweeeezy's user avatar
  • 221
4 votes
1 answer
481 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 ...
Jeff's user avatar
  • 642
2 votes
1 answer
979 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 ...
snowbound's user avatar
  • 516
0 votes
3 answers
657 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 ...
Kev's user avatar
  • 101
2 votes
1 answer
127 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: /usr/...
Grant Birchmeier's user avatar
2 votes
1 answer
3k 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?
Spearfisher's user avatar
0 votes
1 answer
2k 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 ...
dtothefp's user avatar
  • 101
0 votes
1 answer
1k 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 ...
akxlr's user avatar
  • 243
2 votes
1 answer
5k 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 ...
mynameisJEFF's user avatar
4 votes
2 answers
2k 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 ...
Amit's user avatar
  • 441
2 votes
1 answer
2k 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 ...
Eduardo Lucio's user avatar
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 ...
akxlr's user avatar
  • 243
2 votes
2 answers
516 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?
mollerhoj's user avatar
  • 121
3 votes
2 answers
12k 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 files ...
Ravenous's user avatar
  • 305
0 votes
1 answer
476 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. feedkeys("/pathern\...
Eduardo Lucio's user avatar
0 votes
1 answer
150 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 ...
Eduardo Lucio's user avatar