mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 07:43:31 +01:00
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: Johann Fridriksson <jofridri@silabs.com>
This commit is contained in:
parent
130f35fcb2
commit
aa6e932b06
@ -22,7 +22,8 @@ EOH
|
||||
local cmd=""
|
||||
local before="<esc>"
|
||||
local after=""
|
||||
local name="GVIM"
|
||||
# Look up the newest instance
|
||||
local name="$(gvim --serverlist | tail -n 1)"
|
||||
while getopts ":b:a:n:" option
|
||||
do
|
||||
case $option in
|
||||
|
Loading…
Reference in New Issue
Block a user