dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit e8dc723c4277dec4430aacdd6e8c6bf35a2c6cf1
parent 60a575c45319f84926af2c130f55607aa8a5b8ec
Author: Chris Bracken <chris@bracken.jp>
Date:   Mon,  8 Jun 2026 21:27:03 +0900

nvim: map <esc><esc> to return to normal mode from terminal

C-] works well but this might work better.

Diffstat:
M.config/nvim/lua/config/keymaps.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua @@ -17,7 +17,7 @@ end -- In terminal, C-[ (ESC) is passed through to the terminal by default. -- Remap C-] to return to normal mode like C-[ does by default. -vim.keymap.set('t', '<C-]>', '<C-\\><C-n>') +vim.keymap.set('t', '<Esc><Esc>', [[<C-\><C-n>]], { desc = 'Exit terminal mode' }) -- Launch a terminal in a new vertical split, focus it and enter insert mode. vim.keymap.set('n', '<leader>t',