macvim-dev / macvim-dev/macvim
mvim: '+' argument doesn't work with '--remote' and friends
Personne n'a encore pris cette issue.
- Langage dominant
- Vim Script
- Étoiles
- 7.9k
- Forks
- 691
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Reproduisez le comportement avec mvim --clean en utilisant +, +2 et --remote comme décrit, puis suivez le traitement de la ligne de commande de mvim pour ces arguments. Le travail est terminé lorsque le curseur s’ouvre à la fin du fichier pour + et à la ligne demandée pour +n, y compris lorsque --remote est utilisé.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- vim
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 38/100