mvim: '+' argument doesn't work with '--remote' and friends
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 38/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- vim
- 領域
- cli
研究方向
按照描述,使用 +、+2 和 --remote 透過 mvim --clean 重現此行為,然後追蹤 mvim 對這些引數的命令列處理。完成的條件是:對於 +,游標在檔案結尾開啟;對於 +n,游標在要求的行開啟;使用 --remote 時也必須如此。
由索引模型根據 Issue 內容生成。
描述
Steps to reproduce
- Open a terminal.
- Type
ormvim + --remote <filename>mvim +2 --remote <filename>
, where <filename> is an existing file with more than one line.
4. Observe that the cursor is at the top of the file, not the end as directed by + (nor the line specified by +n).
Expected behaviour
Per mvim --help:
+Start at end of file
+<lnum>Start at line
Upon opening, the cursor should have been positioned on the last line of the file (or the line directed by the +<lnum> form).
Version of Vim and architecture
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep 12 2023 09:31:27) macOS version - x86_64. Included patches: 1-1897
Environment
Operating system: MacOS 13.2.1 (22D68)
Terminal: iTerm2 Build 3.4.20
Value of $TERM: xterm-color
Shell: zsh 5.8.1 (x86_64-apple-darwin22.0)
How MacVim was installed
MacPorts
Logs and stack traces
No response
Vim configuration where issue is reproducable
https://gist.github.com/tomory/65de091000d9f89732f33be98d39848e
Issue has been tested with given configuration
- by running MacVim.app from GUI macOS interface
- by running vim/gvim/etc installed by MacVim
- by running other versions of vim (e.g. /usr/bin/vim)
Issue has been tested with no configuration
- by running
mvim --clean(orgvim, supplied by MacVim distribution) - by running
vim --clean(in terminal, supplied by MacVim distribution) - by running
vim --clean(in terminal, other suppliers, e.g. /usr/bin/vim)
Other conditions
- The both Homebrew packages "vim" and "macvim" are installed
- 主要語言
- Vim Script
- 星號
- 7.9k
- 分支
- 691
- 平均合併
- 20 分鐘
- 30 天內合併 PR
- 4
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
macvim-dev/macvim 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
macvim-dev/macvim#1697 · 6 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
macvim-dev/macvim#1658 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
macvim-dev/macvim#1657 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
macvim-dev/macvim#1655 ·
-
難度 2/5 半天 新手友好度 72/100
macvim-dev/macvim#1653 ·
查看 macvim-dev/macvim 的全部 Issue
相似的 Issue
-
README for cli可能已有人在做 @Janvi-kapoor 今天認領。 未關閉OSCI'26
難度 2/5 1-3 小時 新手友好度 70/100
GauravKarakoti/SecureFlow#1308 · 1 則留言 ·
維護者通常 1 天內回覆
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 70/100
graygarbage/HermesKey#21 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
維護者通常 1 天內回覆
-
area:tui bug has repro platform:macos
難度 2/5 1-3 小時 新手友好度 62/100
anthropics/claude-code#101933 ·
維護者通常 1 天內回覆
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 68/100
Edwin-metcalf/MetCode#16 ·