From 34ab0dc6afd8f5082920e494f6503e0c743244ae Mon Sep 17 00:00:00 2001 From: srdusr Date: Sun, 5 Mar 2023 23:53:59 +0200 Subject: Mapping for messages and clear messages --- lua/user/keys.lua | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lua/user/keys.lua b/lua/user/keys.lua index 02b466d..40c75d1 100644 --- a/lua/user/keys.lua +++ b/lua/user/keys.lua @@ -59,6 +59,17 @@ map("n", "d", ":bd") -- List marks map("n", "m", ":marks") +-- Messages +map("n", "M", ":messages") + +-- Clear messages + +-- Clear messages or just refresh/redraw the screen +map("n", "u", ":echo '' | redraw") + +-- Unsets the 'last search pattern' register by hitting return +--map("n", "", "!silent :noh") + -- Toggle set number map("n", "$", ":NumbersToggle") map("n", "%", ":NumbersOnOff") @@ -157,18 +168,12 @@ map("v", "p", '"_dP') -- visual mode to select text to swap with map("v", "", "`.``gvP``P") --- Clear messages or just refresh/redraw the screen -map("n", "u", ":echo '' | redraw") - -- Change Working Directory to current project map("n", "cd", ":cd %:p:h:pwd") -- Open the current file in the default program (on Mac this should just be just `open`) map('n', 'o', ':!xdg-open %') --- Unsets the 'last search pattern' register by hitting return ---map("n", "", "!silent :noh") - -- Toggle completion map("n", "tc", ":lua require('user.mods').toggle_completion()") -- cgit v1.2.3