Questions tagged [macvim]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

How to replace Finder.app with any other file viewer? [duplicate]

Is it possible to replace Finder.app with any other file viewer apps such as: Marta.sh Pathfinder Forklift I'd love to use a more customizable file viewer alternative that would allow me to use Vim-...
TheScriptan's user avatar
3 votes
2 answers
2k views

Command-C in vim on macOS is not copying even with "+clipboard" flag

Let's take a look at the clipboard flags: vim --version | grep clip +clipboard +keymap +printer +vertsplit +eval -mouse_jsbterm -sun_workshop -...
WestCoastProjects's user avatar
0 votes
2 answers
366 views

MacVim and Python on new M1 MacBook

On a vanilla MacBook with M1 processor, I installed MacVim via Homebrew: brew install --cask macvim However, when running :python import sys; print(sys.version) inside MacVim, I get: E370: Could not ...
Ruben Verborgh's user avatar
0 votes
1 answer
184 views

How to debug applescript when an Application's class methods don't respond

In Applescript, I'm trying to change which text editor I'm using. TextEdit works fine, providing the document name, and it opens in MacVim. However, when I try the exact same get path of document 1 ...
Polo's user avatar
  • 41
0 votes
1 answer
1k views

How do I use homebrew to link MacVim and Vim at the same time?

I have used homebrew to install both Vim and MacVim on my mac. Right now, MacVim is the one that is linked. When I run mvim --version, I get the most recent and installed version that appears. When I ...
coopikoop's user avatar
0 votes
1 answer
64 views

Vim — Automatically Doing a Linefeed When Editing a Markdown (.md) File

(MacVim 8.2, Terminal Vim 8.2, MacOS 10.14.6 Mojave) Not sure when this started happening. Whenever I edit a file with a .md extension, Vim immediately does a linefeed after I type certain lines, as ...
Anthony C's user avatar
  • 303
1 vote
0 answers
80 views

Vim in Iterm2 closes after compiling Latex file

When I run !pdflatex % in Macvim, the latex file compiles and I am not exited from Macvim. In iterm2, the compilation occurs and them I am taken out of Vim back into the terminal prompt. Any ideas ...
aladdinoscopy's user avatar
1 vote
0 answers
79 views

Skim/Preview : forward sync not working

I am using Skim to preview pdfs generated by vimtex plugged into MacVim via vim-plug on MacBook Air M1. Whenever I write any changes to my .tex files the pdf opened in Skim does get updated but the ...
asymptoticallyboundedgluon's user avatar
3 votes
1 answer
642 views

MacVim color scheme has the right color, but vim through Terminal doesn't

I've installed color schemes that seem to be working well with MacVim. When I run Vim using Terminal, however, the colors change and the color scheme doesn't appear to be working anymore. Is there a ...
kanayt's user avatar
  • 351
0 votes
1 answer
152 views

how to set afplay as default media player for wma files in mac OS

Hi I am using a vim plugin named eblook which turns vim console into a dictionary. The problem is that the implementation of the plugin is using a default player for WMA file to play the sound file (...
Huibin Zhang's user avatar
1 vote
0 answers
215 views

Command-C does not copy highlighted text into clipboard from MacVim

I just installed macVim/mvim on macOS Catalina and uncertain why the normal macOS shortcuts are not working. They work on my other macOS Mojave system. There are probably some settings I am missing ...
WestCoastProjects's user avatar
1 vote
0 answers
130 views

How can I smooth out uneven scroll behavior using a trackpad in Macvim?

I have just installed MacVim on my new Macbook. But I have a problem: on Linux I was able to scroll through my code—vertically moving my cursor—by using my trackpad. But on Macvim this doesn't work ...
O'Niel's user avatar
  • 159
2 votes
1 answer
2k views

How to improve into vim of MacOS Mojave the speed of vertical scroll with bottom/up keys?

I transfer the original post from StackOverflow (Original post) to here since this is about Apple specificity. I have a new macbook with Mojave and vim already installed. Unfortunately, even for ...
user avatar
1 vote
0 answers
61 views

In MacVim I can't get the command character to map

I read https://stackoverflow.com/questions/40990454/how-to-map-mac-command-key-in-vim that you can get the command key to map in MacVim I have installed MacVim with brew, using brew cask install ...
barlop's user avatar
  • 426
1 vote
1 answer
165 views

macvim shortcut ( and in general)

In my quest to understand how to indent & unindent on MacVim using elegant shortcuts that are built-in... I couldn't figure how. The following links explain that > < keys will be handy, but ...
dia's user avatar
  • 241
0 votes
1 answer
1k views

E319: Sorry, the command is not available in this version on macvim

While trying to prepare macvim environment to work with clang-format I did: $ vim ~/.vimrc map <C-K> :pyf /usr/local/Cellar/clang-format/2018-04-24/share/clang/clang-format.py<cr> imap &...
KcFnMi's user avatar
  • 693
2 votes
1 answer
4k views

How to clear selection in OS X Terminal?

Usually in Terminal to delete text you have to sit there for an hour holding the ⌫ Delete. This is particularly annoying since I use vim in the terminal for Text file editing. But anywhere else in ...
Chris's user avatar
  • 87
4 votes
3 answers
255 views

Open a new MacVim window with AppleScript

I can open a new iTerm window like this: tell application "iTerm" create window with default profile end tell How do I do the same but with MacVim?
zoran119's user avatar
  • 153
3 votes
3 answers
2k views

How do you position your hand to use the control + w key? What fingers do you use?

I would like to improve my typing. Currently, I start web dev with vim. I use one of the feature called split, which create new window for me. then we need to hit Control+ W to move around cursors. I ...
user avatar
1 vote
1 answer
2k views

How to properly use MacVim on OS X? (And, to delete the duplicative *.app via Finder)?

I use Gvim on Windows platforms on an hourly basis, and it really bothers me that I cannot make MacVim work properly when I need to move around with the MacBook Air. A bunch of things are going wrong ...
llinfeng's user avatar
  • 145
1 vote
2 answers
781 views

Open a MacVim (gvim) window from MacVim

On Ubuntu/Windows when I have a gvim window open I just type :!gvim filename to open a new window. On OSX this does nothing. I think it may have to do with OSX not liking multiple instances of the ...
CornSmith's user avatar
  • 143
1 vote
1 answer
304 views

Macvim can not load custom Powerline fonts when started from tmux session

I have a really strange issue with MacVim + Tmux + Powerline Fonts. I can run MacVim from the dock or terminal and it correctly starts with Powerline fonts. When I start a tmux session, and launch ...
cmcginty's user avatar
  • 686
1 vote
0 answers
451 views

Cannot update 'macvim' formula using Homebrew?

I started my update from a clean output for brew doctor and then brew update macvim does not work: brew upgrade macvim ...
qazwsx's user avatar
  • 2,561
3 votes
3 answers
2k views

How to map CAPS LOCK key in Vim?

This question has already been asked here. The accepted answer says it is not possible. Other answers provide a way to do it on linux but I have not check if it worked. I am most interested in knowing ...
solalito's user avatar
  • 193
1 vote
1 answer
2k views

Vim Explorer "not an editor command"

When I open MacVim (installed with homebrew) in the GUI, the Explorer works as expected. But if I open "vim" in a terminal, I've got that message: E492: Not an editor command: Explorer But the netrw ...
Sébastien M's user avatar
2 votes
1 answer
576 views

how to move the 'New MacVim Buffer Here' menu into the main context menu?

If I right click on a file, I can open the file by clicking Services and then New MacVim Buffer Here: However, this is a bit cumbersome. How can I move the New MacVim Buffer Here menu action to be ...
Chris Snow's user avatar
5 votes
1 answer
746 views

How can I fix missing spaces when using Dictation with MacVim or Terminal?

I'm trying to use Dictation on OS X 10.10.5 to enter text into MacVim (or into Terminal). It works for the most part but, for whatever reason, those programs won't let Dictation add a space after each ...
nightfire's user avatar
  • 153
0 votes
1 answer
352 views

macvim not respecting os/x shortcuts

I have macvim working as expected on my older mac. On a newly minted Mac however, the normal key sequences to select, copy, and paste text: Shift arrow keys (select) Command C, Command X, Command ...
WestCoastProjects's user avatar
0 votes
1 answer
33 views

Macvim crashing about hourly

Any hints on stabilizing MacVim? I have version "Custom Version 7.4 (73)" as shown in screenshot Typically MacVim is crashing when I am working on a different application - not when actually editing ...
WestCoastProjects's user avatar
6 votes
1 answer
20k views

Where is the file .vimrc in macOS? (Downloaded Macvim through Homebrew)

I have Yosemite 10.10.3 and I recently downloaded macvim using homebrew. I find a vimrc file under the directory: /usr/share/vim However, after putting some modification like setting the ...
edhu's user avatar
  • 183
2 votes
1 answer
277 views

LustyExplorer is not loading

I added lustyExplorer to ~/.vim/plugin. Then I ran MacVim and tried to run it with ":LustyFileSystemExplorer". Error "Unknown Function: lustyExplorer#LustyFileSystemExplorerStart" In the ...
P.Brian.Mackey's user avatar
1 vote
1 answer
1k views

How do I create a symlink to MacVim configuration files?

I want to store my configuration files in source control and symlink them so they will be used by MacVim. Looking at :scriptnames I see vimrc and gvimrc being used in: /Applications/MacVim.app/...
P.Brian.Mackey's user avatar
2 votes
1 answer
1k views

How can I set up seamless navigation of vim and iterm2 splits?

I am trying to map my C-h, C-j, C-k, C-l keys to be able to navigate vim (running in iterm2) splits but if there is no vim split to move to it should figure out that I want to jump to a different ...
chrisortman's user avatar
1 vote
1 answer
766 views

How to get rid of black stripes in the bottom and top of screen in full screen mode

When I'm opening macvim in full screen mode I have black stripes in bottom and top. So I can't see some part of code. In none full screen there're no black stripes. Is there a way to get rid of ...
megas's user avatar
  • 699
2 votes
0 answers
746 views

MacVim: difference in syntax highlighting in terminal and GUI

I installed MacVim with homebrew, and specified the option to override system vim. It can be confirmed by looking at the version of vim in terminal. However, I don't understand why the terminal (mac)...
Siyuan Ren's user avatar
1 vote
1 answer
839 views

How to change key mapping behavior of macvim

In Ubuntu, if I hit Shift + Alt + A while in insert mode, it moves the cursor to the end of the line and stays in insert mode. Shift + Alt + I does the same for moving to the beginning of the line. ...
AgmLauncher's user avatar
1 vote
1 answer
3k views

Cannot install MacVim 7.4 on OS X Maverick 10.9.4?

I have brew installed (v 0.9.5) along with Xcode (Version 5.1.1 (5B1008)). When I attempt to install MacVim like so I encounter the following error message: $ brew install macvim ==> Downloading ...
slm's user avatar
  • 4,758
0 votes
1 answer
150 views

How to prevent MacVim from inheriting .profile as if it was Bash itself?

I have this guard in my .profile: if [ -n "$BASH_VERSION" ]; then if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi if [ -f "$HOME/.bash_aliases" ]; then . "$HOME/....
oblitum's user avatar
  • 819
1 vote
2 answers
788 views

How to create Mac OS X global hot key to open .txt file in MacVim.app at vim 'mark'?

Can and how can I create Mac OS X global hot key (possibly mapped to an OS X service, like what OmniFocus and Fantastical offer to make new entries in their inbox/calendar, respectively) to open a ...
Johnny Utahh's user avatar
  • 1,259
5 votes
1 answer
679 views

OSX vs Vim: a war for the Function keys

Is there a way to quickly toggle the "use F1, F2, etc as standard function keys" in OSX? I'm a vim user on a MacBook, and I'd like to use at least some of the function keys for vim mappings, but it's ...
ivan's user avatar
  • 319
1 vote
0 answers
183 views

Cannot bring up MacVim 7.4 on Mac OS X 10.7.5

I just installed MacVim 7.4 on Mac OS X Lion through macports, but I cannot bring it up? Typing mvim in the terminal invokes the application but doesn't bring up any window (and doesn't print anything ...
Haitham Gad's user avatar
2 votes
1 answer
2k views

mvim (MacVim 7.4) opening new windows rather than tabs (Mac OS X 10.8.5)

I am using the above and editing new files using mvim <filename>. The first time after I installed mvim in the /usr/local/bin directory it seemed to open files in new tabs by default, this ...
Deesbek's user avatar
  • 3,205
5 votes
2 answers
772 views

Difficulty setting the 'Open with app' to an alias

I am trying to set MacVim, installed via homebrew, to be the default HEX file editor. I started this task by creating an alias to MacVim.app located in /usr/local/Cellar/macvim/7.3-61 and placing the ...
Adam Lewis's user avatar
3 votes
0 answers
236 views

Strange bug in MacVim 7.4 and some others apps on MacBook Retina

Bug (excuse me for bad quality) Explanation: In full screen mode in MacVim 7.4 i see the background panel. I tried set transparency=0 but it does not work, Is it good to see backpanel in ...
Dmitry Zagorulkin's user avatar
4 votes
1 answer
1k views

Vim, MacVim, and Unicode

Unicode characters appear in regular old vim in the terminal (iTerm), but not MacVim. Is there a way to get MacVim to handle Unicode characters appropriately. If it helps, I installed them using ...
Kyle Kelley's user avatar
25 votes
1 answer
6k views

Does Spotlight normally index links in ~/Applications?

I have installed MacVim through homebrew, and this resulted in an alias in ~/Applications that points to /usr/local/Cellar/macvim/7.3-66/MacVim.app. Unfortunately MacVim does not show up in Spotlight ...
Michiel van Oosterhout's user avatar
7 votes
2 answers
11k views

Remap arrow key to different shortcut

I am used to vim and like to move with H, J, K, L. I would like to avoid switching to the arrow keys when I am in a text field for example. Is there a way to remap the following keys in all ...
Mick's user avatar
  • 186
2 votes
2 answers
4k views

vim does not accept syntax in vimrc

When I put the following in ~/.vimrc and save it, syntax on vim get errors while opening. I think there are some vim configuration conflicts. Herewith the errors: Error detected while ...
user1098135's user avatar
3 votes
2 answers
177 views

How to make icons appear at top of MacVim again

I just upgraded to a new version of MacVim. There used to be a row of icons at the top of every MacVim window with buttons for opening/saving files, cut/paste/delete, etc. Now that row of buttons is ...
Tomo Huynh's user avatar
4 votes
2 answers
396 views

Where VIM keep its recordings?

I was trying to use VIM and it kept blinking "recording" all the time. Now I know that it means VIM was recording what I was typing. Where does it keep these recordings? I would like to delete these.
user avatar