From b556e9fe260ce957c79bedd4c926ede517355662 Mon Sep 17 00:00:00 2001 From: Kevin James Lausen Date: Sat, 4 Jun 2022 02:07:21 -0400 Subject: [PATCH] Addded L-binds for: save(L-s), quit(L-qq)(w/o save), quit/save(L-rwqq), & Force quit w/ no save(L-qa) --- lua/user/keymaps.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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. #