So you want to write something like vim foo -[TAB] and open the list automatically to show flags and switches, where you should currently type vim -[TAB] to get your flags and switches, and then type foo , Yes?
I hope I understand your question correctly.
My current zsh completion options could help with this, as I can do what I described, what seems to be what you're asking for? I have long understood that I asked this, so I donβt remember exactly what everyone is doing. However, I believe that you need setopt COMPLETE_IN_WORD , unset LIST_AMBIGUOUS , as well as the parameters zstyle ':completion::approximate*:*' prefix-needed false . If I am wrong, please correct me.
I have included what I use in my zsh as the completion section. I tested this as standalone and it works on my zsh as is.
#{{{ Completion Stuff zmodload -i zsh/complist zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} bindkey -M viins '\Ci' complete-word
Tropical_Peach
source share