Answers:
这不能回答我的想法,但我在网上找到了这个问题
function bind_edit_commandline
set -l tmp (mktemp /tmp/fish-fc.XXXXXX)
commandline > $tmp
eval $EDITOR $tmp
commandline -r ""
cat $tmp | while read -l cmd; commandline -a "$cmd" ""; end
rm $tmp
end
我喜欢Altv,所以
bind \ev bind_edit_commandline