macvim-dev / macvim-dev/macvim
mvim: '+' argument doesn't work with '--remote' and friends
まだ誰も着手していません。
- 主要言語
- Vim Script
- スター
- 7.9k
- フォーク
- 691
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
説明されているとおりに mvim --clean で +、+2、--remote を使用して動作を再現し、その後、これらの引数に対する mvim のコマンドライン処理を追跡します。完了の条件は、+ の場合はカーソルがファイルの末尾で開き、+n の場合は要求された行で開くことです。--remote を使用した場合も同様です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- vim
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100