From 40e60b21c9944bbdb361f5a007adcde1792a290c Mon Sep 17 00:00:00 2001 From: yash-fn <76577754+yash-fn@users.noreply.github.com> Date: Sun, 27 Aug 2023 15:13:38 -0500 Subject: [PATCH] vim editor syntax highlighting for .tmux.conf.local --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 760cf96..24c6766 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -28,7 +28,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_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} source "$TMUX_CONF" \; display "$TMUX_CONF_LOCAL sourced"' +bind e new-window -n "#{TMUX_CONF_LOCAL}" sh -c '${EDITOR:-vim} -c ":set syntax=tmux" "$TMUX_CONF_LOCAL" && "$TMUX_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} source "$TMUX_CONF" \; display "$TMUX_CONF_LOCAL sourced"' # reload configuration bind r run '"$TMUX_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} source "$TMUX_CONF"' \; display "#{TMUX_CONF} sourced"