Skip to content

Commit

Permalink
fixed '<prefix> + e' binding when EDITOR is set to 'gvim' or 'mvim', …
Browse files Browse the repository at this point in the history
…#fixes 416
  • Loading branch information
gpakosz committed Oct 6, 2020
1 parent 1368983 commit 6a2a734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 6a2a734

Please sign in to comment.