summaryrefslogtreecommitdiff
path: root/after/ftplugin/sh.lua
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-20 19:41:44 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-20 19:41:44 +0200
commit2de8fa2517c4f3232138b5cb2c370c3aec07e369 (patch)
treed9b79c64bc41a5e0dd339b31339811225b6a59f9 /after/ftplugin/sh.lua
parentc63da08e0cad6c38905b06b83d178a443393ac7e (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 48c140e..569d87d 100644
--- a/after/ftplugin/sh.lua
+++ b/after/ftplugin/sh.lua
@@ -2,4 +2,4 @@ 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", ",e", [[<cmd>s/\(\s*\)\(.\+\)/\1[ "$\2" ] || exit 1'/<cr>]], { desc = "Surround var with exit if empty" })
+map("n", ",e", [[<cmd>s/\(\s*\)\(.\+\)/\1[ "$\2" ] || exit 1/<cr>]], { desc = "Surround var with exit if empty" })