Carlos, I already use vi as the command line editor. What I need to know is either the key sequence used to invoke filename completion, or how to map such a key sequence.
The man page for ksh seems to suggest that the ESC-ESC sequence would work, but it doesn't for me :-(
1 - set o-vi
( You can place this in either the .profile or .kshrc. I'd recommend the .kshrc)
2 - Type the number of characters to get a unique file name
3 - Press ESC then the backslash key
If all goes well it should complete the name of the file for you.
The trick is the characters that are passed need to be unique. If you have three files
called stuff1, stuff2, and stuff3. If you type in stuff and go through the sequence above you'll get nothing back because the command shell can not figure out which stuff file you mean.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.