Live reload Vim instances!

Add the necessary support for the new script that handles the live
reloading of theme changes to Vim.

This has been the only major problem in my "environment theme switch":
all running instances of `vim` had to be closed and opened again to
inherit the new colours, though only when transitioning from a light to
a dark theme (and vice versa).

For the new script see commit: 8ce68a6512.
This commit is contained in:
Protesilaos Stavrou 2019-04-17 02:58:28 +03:00
parent 8ce68a6512
commit f6ea243161
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -685,9 +685,10 @@ update_environment_theme() {
# first modify running GTK because we see them, then edit the files
modify_running_gtk_and_flatpak
modify_gtk
modify_vim
own_script_update_tmux_running_vim
modify_gtksourceview3
modify_gtksourceview4
modify_vim
# the shell is reloaded first, so that others can take the new
# variables it exposes
# call external script to pass new colours to running terminals
@ -723,9 +724,10 @@ update_environment_theme_de() {
;;
esac
modify_gtk
modify_vim
own_script_update_tmux_running_vim
modify_gtksourceview3
modify_gtksourceview4
modify_vim
# the shell is reloaded first, so that others can take the new
# variables it exposes
modify_shell_theme