Unverified Commit aa6e932b authored by Jóhann Friðriksson's avatar Jóhann Friðriksson Committed by GitHub

fix(vim-interaction): look up the newest GVim instance (#9095)

Instead of relying on a hardcoded instance-name existing for the default-value, let's
look up the latest instance. This also resolves my problem where MacVim
had a servername of "VIM" instead of "GVIM".
Co-authored-by: 's avatarJohann Fridriksson <jofridri@silabs.com>
parent 130f35fc
...@@ -22,7 +22,8 @@ EOH ...@@ -22,7 +22,8 @@ EOH
local cmd="" local cmd=""
local before="<esc>" local before="<esc>"
local after="" local after=""
local name="GVIM" # Look up the newest instance
local name="$(gvim --serverlist | tail -n 1)"
while getopts ":b:a:n:" option while getopts ":b:a:n:" option
do do
case $option in case $option in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment