Allow fast switching from insert mode to normal in vim.
Set (and export) environment variable SLOWTERM to override.
set-window-option -g mode-keys vi
# Pass [Ctrl]+[PgUp/PgDn]
set-window-option -g xterm-keys on
+# Don't wait for [Esc] to allow fast switching from insert mode to normal in vim
+# Set (and export) environment variable SLOWTERM to override.
+if-shell "test -z $SLOWTERM" "set-option -gs escape-time 0"
# Mouse
set-window-option -g mode-mouse on