macvim-dev / macvim-dev/macvim

Include a script to install macvim as system/user level vim commands

Open
#1,226 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
7.9k
Forks
691
PR merge metrics
No merged PRs in 30d

Description

Instructions: Replace the template text and remove irrelevant text (including this line)

Is your feature request about something that is currently impossible or hard to do? Please describe the problem.
Include a script to MacVim installation for users to use MacVim as system or user level vim commands (vim, view, vimdiff, etc.)

Describe the solution you'd like
Include a script to MacVim installation, maybe in /Application/MacVim/Contents/scripts/install_macvim_links

The script could look like:

#!/bin/sh

MVIM_DIR="/Applications/MacVim.app/Contents/bin"
DEST_DIR="$HOME/.local/bin"
mkdir -p "$DEST_DIR"

(
cd "$MVIM_DIR" || {
    echo "Cannot change to dir $MVIM_DIR"
    exit 2
}

for fn in vim vimdiff view gvim gvimdiff gview; do
    target="$(pwd)/$fn"
    echo "Linking $target into $DEST_DIR..."
    ln -sf "$target" "$DEST_DIR"
done
)

Describe alternatives you've considered
Leave the suffer to the users

Additional context
https://superuser.com/a/1697239/114255

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the proposed location, /Applications/MacVim.app/Contents/scripts/install_macvim_links, and the existing MacVim installation layout. Check how the vim, view, vimdiff, gvim, gvimdiff, and gview commands are exposed, then verify that the script supports the requested user-level and system-level use without breaking existing links.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell, vim
Domain
cli, desktop
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.