From 58098da6b912f1bd36d602cbf712ada7af7fd6fd Mon Sep 17 00:00:00 2001 From: srdusr Date: Mon, 4 Sep 2023 23:17:23 +0200 Subject: Mapping '' also works in terminal now --- lua/user/keys.lua | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'lua') diff --git a/lua/user/keys.lua b/lua/user/keys.lua index 3305653..07a1b12 100644 --- a/lua/user/keys.lua +++ b/lua/user/keys.lua @@ -87,17 +87,11 @@ map('n', '<', ':vertical resize +5') map('n', '>', ':vertical resize -5') map('n', '=', '=') --- Map Alt+(h/j/k/l) in insert mode to move directional -map('i', '', '') -map('i', '', '') -map('i', '', '') -map('i', '', '') - --- Map Alt+(h/j/k/l) in command mode to move directional -vim.api.nvim_set_keymap('c', '', '', { noremap = true }) -vim.api.nvim_set_keymap('c', '', '', { noremap = true }) -vim.api.nvim_set_keymap('c', '', '', { noremap = true }) -vim.api.nvim_set_keymap('c', '', '', { noremap = true }) +-- Map Alt+(h/j/k/l) in insert(include terminal/command) mode to move directional +map({ 'i', 't', 'c' }, '', '') +map({ 'i', 't', 'c' }, '', '') +map({ 'i', 't', 'c' }, '', '') +map({ 'i', 't', 'c' }, '', '') -- Create tab, edit and move between them map('n', 'n', ':tabnew') -- cgit v1.2.3