Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 7 tasks
tomory opened this issue Oct 17, 2023 · 1 comment
Open
1 of 7 tasks

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

tomory opened this issue Oct 17, 2023 · 1 comment
Milestone

Comments

@tomory
Copy link

tomory commented Oct 17, 2023

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
@ychin
Copy link
Member

ychin commented Oct 18, 2023

Hmm, seems like this bug only happens when you use --remote. I can take a look

@ychin ychin added this to the Backlog milestone Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants