Open tomory opened 8 months ago
mvim + --remote <filename>
or
mvim +2 --remote <filename>
, where \<filename> is an existing file with more than one line.
+
+n
Per mvim --help:
mvim --help
+ Start at end of file +<lnum> Start at line
+<lnum>
Upon opening, the cursor should have been positioned on the last line of the file (or the line directed by the +<lnum> form).
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep 12 2023 09:31:27) macOS version - x86_64. Included patches: 1-1897
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)
MacPorts
No response
https://gist.github.com/tomory/65de091000d9f89732f33be98d39848e
mvim --clean
gvim
vim --clean
Hmm, seems like this bug only happens when you use --remote. I can take a look
--remote
Steps to reproduce
or
, where \<filename> is an existing file with more than one line.
+
(nor the line specified by+n
).Expected behaviour
Per
mvim --help
: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
Issue has been tested with no configuration
mvim --clean
(orgvim
, supplied by MacVim distribution)vim --clean
(in terminal, supplied by MacVim distribution)vim --clean
(in terminal, other suppliers, e.g. /usr/bin/vim)Other conditions