From be4ef79d068ed869eb3a9168702a2ec9ae96b488 Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:43:43 -0500 Subject: [PATCH] feat: make `vv` temporary file a `.zsh` file Improves highlighting for editors. Specifically helpful for Helix, which doesn't have a modeline yet. --- zsh-vi-mode.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-vi-mode.zsh b/zsh-vi-mode.zsh index 48aaa5a..52195fb 100644 --- a/zsh-vi-mode.zsh +++ b/zsh-vi-mode.zsh @@ -1888,7 +1888,7 @@ function zvm_repeat_command { # Edit command line in EDITOR function zvm_vi_edit_command_line() { # Create a temporary file and save the BUFFER to it - local tmp_file=$(mktemp ${ZVM_TMPDIR}/zshXXXXXX) + local tmp_file=$(mktemp ${ZVM_TMPDIR}/zshXXXXXX.zsh) # Some users may config the noclobber option to prevent from # overwriting existing files with the > operator, we should