diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-07 16:29:00 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-07 16:29:00 +0200 |
commit | afbe8af709360c025b5b00448f154d4ac9c336b3 (patch) | |
tree | db1b80bf57bbb27e580c96e91897f60a1c5a0271 | |
parent | 56403ecb3fb6f16b625ec0bd37727324399f306a (diff) |
checkpoint
-rw-r--r-- | after/ftplugin/sh.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/after/ftplugin/sh.lua b/after/ftplugin/sh.lua index 5bd9b4b..eb7b950 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*\)\(.\+\)/\1printf '\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" }) |