From 71fae03c07e2815c1e9cf3e741de0f827ea14f97 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 18 Nov 2021 13:20:59 +0530 Subject: [PATCH] nvim: keymappings: Fix mapping for replace word With silent set, we could not provide the input at the command line. Also, the c. mapping wasn't suppose to have . --- nvim/.config/nvim/lua/keymappings.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nvim/.config/nvim/lua/keymappings.lua b/nvim/.config/nvim/lua/keymappings.lua index 523d401..66c79ca 100644 --- a/nvim/.config/nvim/lua/keymappings.lua +++ b/nvim/.config/nvim/lua/keymappings.lua @@ -1,6 +1,6 @@ local remap = vim.api.nvim_set_keymap -local expr_opts = { noremap=true, silent=true, unique=true, expr=true } -local opts = { noremap=true, silent=true, unique=true } +local expr_opts = { noremap=true, unique=true, expr=true } +local opts = { noremap=true, unique=true } remap('c', '', '', opts) -- Use Q to execute default register. @@ -11,7 +11,7 @@ remap('v', 'Y', '"*y' , opts) remap('n', 'p', '"+p', opts) remap('n', 'P', '"*p', opts) -- Search and Replace -remap('n', 'c.' , ':%s//g' , opts) +remap('n', 'c.' , ':%s//g' , opts) remap('n', 'c.', ':%s/\\<\\>//g', opts) -- Quit remap('n', 'x', ':x' , opts)