vim: keymap to switch from terminal mode to normal mode

This commit is contained in:
Fernando Schauenburg 2022-12-16 20:26:57 +01:00
parent c728f7b085
commit ce81d3553a

View file

@ -63,6 +63,9 @@ map('n', '<leader>bg', [[<cmd>let &background = &background ==? 'light' ? 'dark'
-- disable highlight until next search -- disable highlight until next search
map('n', '<leader>h', '<cmd>nohlsearch<cr>') map('n', '<leader>h', '<cmd>nohlsearch<cr>')
-- more convenient way of entering normal mode from terminal mode
map('t', [[<c-\><c-\>]], [[<c-\><c-n>]])
-- edit configuration files -- edit configuration files
map('n', '<leader>eg', '<cmd>tabedit ~/.config/git/config<cr>') map('n', '<leader>eg', '<cmd>tabedit ~/.config/git/config<cr>')
map('n', '<leader>et', '<cmd>tabedit ~/.config/tmux/tmux.conf<cr>') map('n', '<leader>et', '<cmd>tabedit ~/.config/tmux/tmux.conf<cr>')