macvim-dev / macvim-dev/macvim

mvim: '+' argument doesn't work with '--remote' and friends

Abierto
#1,445 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Vim Script
Estrellas
7.9k
Forks
691
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Steps to reproduce
  1. Open a terminal.
  2. Type
    mvim + --remote <filename>
    
    or
    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 (or gvim, 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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Reproduce el comportamiento con mvim --clean usando +, +2 y --remote tal como se describe, y luego rastrea el procesamiento de la línea de comandos de mvim para estos argumentos. La tarea estará terminada cuando el cursor se abra al final del archivo para + y en la línea solicitada para +n, incluso cuando se use --remote.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
vim
Área
cli
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
38/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.