summaryrefslogtreecommitdiff
path: root/after/ftplugin/sh.lua
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-13 12:55:41 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-13 12:55:41 +0200
commit36459bee543d1ea809bf66178b8ed933a44f77b5 (patch)
tree6073228848df3c6d9cb712963abfa1f8a57f4a7c /after/ftplugin/sh.lua
parent0b3dfbfd98b311c6228f75e6d71d917fa9aa3785 (diff)
checkpoint
Diffstat (limited to 'after/ftplugin/sh.lua')
-rw-r--r--after/ftplugin/sh.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/after/ftplugin/sh.lua b/after/ftplugin/sh.lua
index eb7b950..48c140e 100644
--- a/after/ftplugin/sh.lua
+++ b/after/ftplugin/sh.lua
@@ -1,5 +1,5 @@
local map = vim.keymap.set
map("n", ",v", [[<cmd>s/\(\s*\)\(.\+\)/\1"$(\2)"/<cr>]], { desc = "Surround with variable" })
-map("n", ",p", [[<cmd>s/\(\s*\)\(.\+\)/\1>&2 printf '\2: %s\\n' "$\2"/<cr>]], { desc = "Surround var with printf" })
+map("n", ",p", [[<cmd>s/\(\s*\)\(.\+\)/\1>\&2 printf '\2: %s\\n' "$\2"/<cr>]], { desc = "Surround var with printf" })
map("n", ",e", [[<cmd>s/\(\s*\)\(.\+\)/\1[ "$\2" ] || exit 1'/<cr>]], { desc = "Surround var with exit if empty" })