File tree 2 files changed +21
-1
lines changed 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
10
10
11
11
For a steady stream of TILs, [ sign up for my newsletter] ( https://tinyletter.com/jbranchaud ) .
12
12
13
- _ 985 TILs and counting..._
13
+ _ 986 TILs and counting..._
14
14
15
15
---
16
16
@@ -883,6 +883,7 @@ _985 TILs and counting..._
883
883
- [ Paging Up And Down] ( tmux/paging-up-and-down.md )
884
884
- [ Pane Killer] ( tmux/pane-killer.md )
885
885
- [ Reclaiming The Entire Window] ( tmux/reclaiming-the-entire-window.md )
886
+ - [ Remove The Delay On The Escape Key] ( tmux/remove-the-delay-on-the-escape-key.md )
886
887
- [ Rename The Current Session] ( tmux/rename-the-current-session.md )
887
888
- [ Reset An Option Back To Its Default Value] ( tmux/reset-an-option-back-to-its-default-value.md )
888
889
- [ Show The Current Value For An Option] ( tmux/show-the-current-value-for-an-option.md )
Original file line number Diff line number Diff line change
1
+ # Remove The Delay On The Escape Key
2
+
3
+ By default, tmux imposes a 500ms delay on presses of the escape key. This is in
4
+ case the escape key is used as part of a tmux key binding.
5
+
6
+ I don't use the escape key for any of my tmux key bindings, but I do use the
7
+ escape key quite in other contexts, like Vim.
8
+
9
+ The 500ms delay on the escape key being registered in contexts like Vim is
10
+ annoying at best. This delay can be removed by overriding the ` escape-time `
11
+ option.
12
+
13
+ ```
14
+ set -sg escape-time 0
15
+ ```
16
+
17
+ Adding this line to your ` ~/.tmux.conf ` file will set the delay to 0ms. The
18
+ ` -s ` and ` -g ` flags set the option for the _ server_ and the _ global server_
19
+ contexts respectively.
You can’t perform that action at this time.
0 commit comments