macvim-dev / macvim-dev/macvim

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

未关闭
#1,226 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Vim Script
星标
7.9k
派生
691
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先检查建议的位置 /Applications/MacVim.app/Contents/scripts/install_macvim_links 以及现有的 MacVim 安装布局。检查 vim、view、vimdiff、gvim、gvimdiff 和 gview 命令是如何提供的,然后验证该脚本支持所请求的用户级和系统级使用,且不会破坏现有链接。

由索引模型根据 Issue 内容生成。

评估

技术栈
shell, vim
领域
cli, desktop
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。