You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to have an external program trigger opening neovim for a file at the given line and column, reusing any open instances of neovim or creating a new one.
Problem: This does nothing if there isn't an existing instance.
Expected behavior
Vim supported this with
vim --server --remote-silent +"normal 100G5|" "/home/paul/test.txt"
So I expected that to work, but the [+{cmd]] part of --remote-silent is unimplemented in Neovim as mentioned by the documentation. I don't need it to be implemented the same way as Vim though.
The text was updated successfully, but these errors were encountered:
justinmk
changed the title
Open file at line:column in existing or new nvim instance
remote: ppen file at line:column in existing or new nvim
May 21, 2024
justinmk
changed the title
remote: ppen file at line:column in existing or new nvim
remote: open file at line:column in existing or new nvim
May 21, 2024
Request
I'd like to have an external program trigger opening neovim for a file at the given line and column, reusing any open instances of neovim or creating a new one.
Example integrations that would be benefit from this:
Godot
Unity3d
Wezterm
What I tried
Failed Attempt 1
Currently you can open a file in an existing instance or open a new instance with that file using:
Problem: This does not support line numbers
Failed Attempt 2
Currently you can open a file at the given line:column in an existing nvim instance using:
Problem: This does nothing if there isn't an existing instance.
Expected behavior
Vim supported this with
So I expected that to work, but the
[+{cmd]]
part of--remote-silent
is unimplemented in Neovim as mentioned by the documentation. I don't need it to be implemented the same way as Vim though.The text was updated successfully, but these errors were encountered: