Skip to content

Commit 4f1851c

Browse files
committed
Add Remove The Delay On The Escape Key as a tmux til
1 parent 85ee6f9 commit 4f1851c

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
1010

1111
For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud).
1212

13-
_985 TILs and counting..._
13+
_986 TILs and counting..._
1414

1515
---
1616

@@ -883,6 +883,7 @@ _985 TILs and counting..._
883883
- [Paging Up And Down](tmux/paging-up-and-down.md)
884884
- [Pane Killer](tmux/pane-killer.md)
885885
- [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)
886887
- [Rename The Current Session](tmux/rename-the-current-session.md)
887888
- [Reset An Option Back To Its Default Value](tmux/reset-an-option-back-to-its-default-value.md)
888889
- [Show The Current Value For An Option](tmux/show-the-current-value-for-an-option.md)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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.

0 commit comments

Comments
 (0)