From a77dd67820460dbe36fea09314e162121d2e331d Mon Sep 17 00:00:00 2001 From: Kevin James Lausen Date: Sat, 4 Jun 2022 00:50:15 -0400 Subject: [PATCH] Tweaked nn->ln, & added negation of ls/rln/ln. --- lua/user/keymaps.lua | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index b39c64f..6a656eb 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -81,26 +81,29 @@ keymap("i", "jk", "", opts) -- "################################################################ keymap("n", "nh", ":nohl", opts) --- "################################################################## --- "# Map nr to toggle off the relative line numbers in Normal mode. # --- "################################################################## - keymap("n", "nr", ":set nornu", opts) - -- "######################################################### --- "# Map n, to toggle regular line-numberings on, # +-- "# Map nn, to toggle regular line-numberings on, # -- "# to check for which specific line of the file your on. # -- "######################################################### - keymap("n", "nn", ":set nonu", opts) + keymap("n", "lno", ":set nonu", opts) -- Turn line-numbers OFF. + keymap("n", "ln", ":set nu", opts) -- Turn line-numbers back on. + +-- "################################################################## +-- "# Map nr to toggle off the relative line numbers in Normal mode. # +-- "################################################################## + keymap("n", "nno", ":set nornu", opts) -- Turn relative line-numbers OFF. + keymap("n", "rn", ":set rnu", opts) -- Turn relative line-numbers back on. -- "########################################################################## -- "#I'm mapping comma{,} + lower-case 'l' to disable special char listings. # -- "########################################################################## - keymap("n", "nl", ":set nolist", opts) + keymap("n", "nls", ":set nolist", opts) -- Turn special hidden chars OFF. + keymap("n", "ls", ":set list", opts) -- Turn List(ls) mode back on. -- "############################################################################## -- "# cm == copy-mode. disables special characters($) and relative-line-numbers. # -- "############################################################################## - keymap("n", "cm", ":set nolist :set nornu :set nonu ", opts) + keymap("n", "cm", ":set nolist :set nornu :set nonu ", opts) -- "################################################# -- "# I'm mapping vc to reload the .vimrc, #