Timeline for Can I open a file in an existing Vim instance from an external command?
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 29, 2023 at 4:42 | comment | added | Sridhar Sarnobat |
I wish there was a way to get this to work with open -g -a /Applications/MacVim.app --args --remote-silent file1.txt file2.txt bit. I end up getting separate windows for each file.
|
|
Mar 26, 2020 at 11:03 | comment | added | TamaMcGlinn |
if you want this in NeoVim, which doesn't support --servername, install Neovim-Remote by doing pip3 install neovim-remote and then you can do nvr --remote filename.txt from a seperate shell to open filename in the other, or use nvr -l filename.txt from a :terminal buffer inside vim, to open the file in the other buffer (rather than opening vim within vim, as you otherwise might). Similarly, git can be configured to use the vim instance calling it, rather than spawning vim within vim.
|
|
S Mar 25, 2020 at 17:11 | history | suggested | TamaMcGlinn | CC BY-SA 4.0 |
added whiteline so that the commands are not broken over the line-ending (it was unclear whether --servername or -- servername was specified)
|
Mar 25, 2020 at 6:40 | review | Suggested edits | |||
S Mar 25, 2020 at 17:11 | |||||
S Feb 19, 2018 at 0:24 | history | suggested | vandiacutek | CC BY-SA 3.0 |
the argument order given in the reply resulted in opening two more files - "--servername" and "SERVER", this is not the expected behavior
|
Feb 18, 2018 at 15:44 | review | Suggested edits | |||
S Feb 19, 2018 at 0:24 | |||||
S Oct 8, 2016 at 12:46 | history | suggested | ideasman42 | CC BY-SA 3.0 |
title macOS section
|
Oct 8, 2016 at 0:57 | review | Suggested edits | |||
S Oct 8, 2016 at 12:46 | |||||
Jul 19, 2015 at 2:43 | vote | accept | ideasman42 | ||
Feb 4, 2015 at 15:50 | history | answered | craigp | CC BY-SA 3.0 |