From 0d3a244ff2d3f10d3d3946fbff55b11451cb53e5 Mon Sep 17 00:00:00 2001 From: srdusr Date: Sun, 16 Jul 2023 02:34:48 +0200 Subject: Add Substitute keybindings --- lua/user/keys.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/user/keys.lua b/lua/user/keys.lua index a20b0ea..d16af95 100644 --- a/lua/user/keys.lua +++ b/lua/user/keys.lua @@ -197,6 +197,10 @@ else map[''].gx = { 'lua print("Error: gx is not supported on this OS!")' } end +-- Substitute globally and locally in the selected region. +map("n", "ss", ":%s//g") +map("v", "ss", ":s//g") + -- Toggle completion map("n", "tc", ":lua require('user.mods').toggle_completion()") -- cgit v1.2.3