5 votes
Accepted

Open a new MacVim window with AppleScript

To open a new window in MacVim, you can use the following example AppleScript code: tell application "MacVim" activate delay 1 end tell tell application "System Events" keystroke "n" ...
user3439894's user avatar
  • 58.7k
4 votes
Accepted

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

My confusion stems from "which" terminal is being used. I had not installed iTerm2 yet: and that is the critical difference between the two laptops. With mouse reporting enabled we do have ...
WestCoastProjects's user avatar
4 votes
Accepted

Open a MacVim (gvim) window from MacVim

Using :!mvim filename (or !gvim filename) works for me, but I have the commands set up in /usr/local/bin (and /usr/local/bin in PATH), and I don't remember the installation instructions for where to ...
Random832's user avatar
  • 741
3 votes

How to clear selection in OS X Terminal?

You need to learn the keyboard commands for the editor you are using; in this case, vim. To delete, press Esc for "Command Mode" then.... x - for a character dw - for the current word dd - for ...
Allan's user avatar
  • 102k
2 votes

Vim/Emacs keybinding for `Preview.app`

Self-plug – I’ve made a Karabiner rule that adds vim jk bindings to Preview. I didn’t want to use the other Karabiner rules that added systemwide vim bindings. https://github.com/xrisk/preview-vim To ...
xrisk's user avatar
  • 193
2 votes
Accepted

MacVim and Python on new M1 MacBook

The easy answer was apparently brew install python brew install [email protected] and then it all works without extra Vim configuration.
Ruben Verborgh's user avatar
1 vote

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

I had an iTerm2 Copy Paste issue while working in NeoVim (nvim). I had the option Enable Mouse Reporting checked and that messed up my ability to use ⌘ CmdC in Neovim. To fix it: iTerm2 -> Setting ...
Chad Sherrell's user avatar
1 vote
Accepted

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

To expand on @mmmmmm's comment, run echo $PATH in your terminal. Make sure homebrew's path, which is /opt/homebrew/bin on M1/Apple Silicone Macs and /usr/local/bin on Intel Macs, is before your system'...
Adam Bulgatz's user avatar
1 vote

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

I had the setting filetype plugin on in my .vimrc. Commenting this out solved my problem. (I need to learn more about vim customization, I guess.) More info here, at the vi stack exchange: https://vi....
Anthony C's user avatar
  • 303
1 vote

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

The terminal colours are set separately from :colorscheme, there's a function you can use to see what the current colours are called term_getansicolors. There's also another one called ...
cd3k's user avatar
  • 111
1 vote

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

You can only associate file types to GUI apps. You should be able to make an Automator app that is a wrapper for the afplay command, and that will have minimal "overhead".
benwiggy's user avatar
  • 35.7k
1 vote
Accepted

macvim shortcut ( and in general)

You have to hold the shift key then double-press either > or < to indent/unindent.
airsquared's user avatar
  • 5,107
1 vote

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

It may be because you do not have the correct clang-format.py file downloaded. If vim is compiled using python3 then you need a different file because it is in python2. I downloaded a new python file ...
debo's user avatar
  • 111
1 vote
Accepted

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

On the Apple Magic keyboard, I use my left thumb for the command key, and my left ring finger for any bottom row keys to the left of that. For command W, I use my thumb and middle finger. For control ...
Matt's user avatar
  • 562
1 vote

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

First, you can certainly delete all the outdated version of MacVim leaving only the newest. To run MacVim from the command line you need to call the mvim script which is in the app itself, somewhere ...
Tony Williams's user avatar
1 vote

Use MacVim as standard Terminal?

At least now, in 2020, this is built into MacVim. You can open the terminal with :terminal and you can navigate to and from it by tapping <C-w> twice. For more information on usage, type :help ...
Mark Wilbur's user avatar
1 vote
Accepted

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

I stumbled over the solution with some searching. The issue issue can be fixed with the reattach-to-user-namespace tool. $ brew install reattach-to-user-namespace Add the following line to the end ...
cmcginty's user avatar
  • 686
1 vote

LustyExplorer is not loading

If you have dowloaded the file from github seems to be incorrect. Use the download link in the plugin page lusty-explorer.vim that works as expected
user208371's user avatar
1 vote

Difficulty setting the 'Open with app' to an alias

I had a text file symlinked to my desktop. I was unable to associate an application to "open with" for the link, so I found the original file and was able to perform the action there. With &...
John Lehmann's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible