From ce81d3553aeb27e9cc924e7eb0a2944f951a4d2e Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Fri, 16 Dec 2022 20:26:57 +0100 Subject: [PATCH] vim: keymap to switch from terminal mode to normal mode --- config/nvim/lua/fs/keymaps.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/nvim/lua/fs/keymaps.lua b/config/nvim/lua/fs/keymaps.lua index 3d021ad..f0607f3 100644 --- a/config/nvim/lua/fs/keymaps.lua +++ b/config/nvim/lua/fs/keymaps.lua @@ -63,6 +63,9 @@ map('n', 'bg', [[let &background = &background ==? 'light' ? 'dark' -- disable highlight until next search map('n', 'h', 'nohlsearch') +-- more convenient way of entering normal mode from terminal mode +map('t', [[]], [[]]) + -- edit configuration files map('n', 'eg', 'tabedit ~/.config/git/config') map('n', 'et', 'tabedit ~/.config/tmux/tmux.conf')