Skip to content

Instantly share code, notes, and snippets.

@arleighdickerson
Created April 29, 2018 11:55
Show Gist options
  • Save arleighdickerson/6a3a7cc1c15cbce19787beeb766df6f0 to your computer and use it in GitHub Desktop.
Save arleighdickerson/6a3a7cc1c15cbce19787beeb766df6f0 to your computer and use it in GitHub Desktop.
set macvim as the default text editor (High Sierra)
$!/bin/bash
# 1) Set New Defaults
# ========================================
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add \
'{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=org.vim.MacVim;}'
# 2) Profit
# ========================================
# $$$ acquire currency $$$
#
@megasuperlexa
Copy link

this does not seem to work for me in 2024 and macos Sonoma 14.5, but I found another way of doing this https://gist.github.com/megasuperlexa/6f09c1bb8ca0fbd3bfda05067c9df60a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment