macvim-dev / macvim-dev/macvim
Include a script to install macvim as system/user level vim commands
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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