Skip to content

Commit 8ffeb1d

Browse files
committed
fixed '<prefix> + e' binding when EDITOR is set to 'gvim' or 'mvim', fixes #416
1 parent 1368983 commit 8ffeb1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.tmux.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ setw -q -g utf8 on
2424
set -g history-limit 5000 # boost history
2525

2626
# edit configuration
27-
bind e new-window -n "~/.tmux.conf.local" "sh -c '\${EDITOR:-vim} ~/.tmux.conf.local && tmux source ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\"'"
27+
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\""
2828

2929
# reload configuration
3030
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'

0 commit comments

Comments
 (0)