diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 8c6c04c..a903be4 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -62,10 +62,10 @@ vim.keymap.set("", "", "") vim.cmd.aunmenu({ "PopUp.-1-", }) vim.cmd.aunmenu({ "PopUp.How-to\\ disable\\ mouse", }) --- Shift+Tab to unindent -vim.keymap.set("i", "", function () - local cursor = vim.api.nvim_win_get_cursor(0) - local row, col = cursor[1], cursor[2] - vim.cmd.normal("<<") - vim.api.nvim_win_set_cursor(0, { row, col - vim.o.shiftwidth, }) -end) +-- Default bindings that are good to know: +-- insert mode: +-- - indent, see :h i_CTRL-T +-- - un-indent, see :h i_CTRL-D +-- normal mode: +-- - scroll window down lines, see :h CTRL-E +-- - scroll window up lines, see :h CTRL-Y