1

I have two versions of a certain application, the one in my PATH and one at ~/install/app. So normally I do

app file

But sometimes I want to do, right after that:

~/install/app file

With bash I would

app fileESCI to position the cursor in the begining of the line (I use vim keybindings)

Then, with the cursor in the beginning of the line, start typing ~/install and complete with TAB:

~/insTABapp file

~/install/app file

However, with zsh the completion does not work, because there is no space between ~/ins and app, so it doesn't know what to do. How can I solve this?

1 Answer 1

1
bindkey -M viins '^I' expand-or-complete-prefix

…and TAB should work the way you like it in vi insert mode.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .