diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index d191db1..b822203 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -120,6 +120,18 @@ keymap("i", "jk", "", opts) keymap("n", "cc", ":changes", opts) -- This will open up the Changes-list. keymap("n", "rr", ":registers", opts) -- This will open up the Registers-list. +-- "######################################################################## +-- "# Adding some hotkeys to more easily deal with splits. # +-- "# qq == :q aka quit file. You will be prompted if the file is unsaved. # +-- "# wq == :wq aka Save and quit. # +-- "# qa == :qa! aka quit the file without saving # +-- "# w == :w aka save(write) file. # +-- "######################################################################## + keymap("n", "qq", ":q", opts) + keymap("n", "wq", ":wq", opts) + keymap("n", "qa", ":qa!", opts) + keymap("n", "s", ":w", opts) + -- "################################################# -- "# I'm mapping vc to reload the .vimrc, # -- "# without closing and re-opening he vim config. #