From 8ffeb1d809dd67b7617622239f328d3c5d96829a Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Tue, 6 Oct 2020 08:00:42 +0200 Subject: [PATCH] fixed ' + e' binding when EDITOR is set to 'gvim' or 'mvim', fixes #416 --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index bc665a1..f1dc089 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -24,7 +24,7 @@ setw -q -g utf8 on set -g history-limit 5000 # boost history # edit configuration -bind e new-window -n "~/.tmux.conf.local" "sh -c '\${EDITOR:-vim} ~/.tmux.conf.local && tmux source ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\"'" +bind e new-window -n "~/.tmux.conf.local" "EDITOR=\${EDITOR//mvim/vim} && EDITOR=\${EDITOR//gvim/vim} && \${EDITOR:-vim} ~/.tmux.conf.local && tmux source ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\"" # reload configuration bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'