macvim-dev / macvim-dev/macvim
Include a script to install macvim as system/user level vim commands
还没有人认领这个 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 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