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