You also have the improved vi, vim in OpenSolaris ->which vim /usr/bin/vim
Richard L. Hamilton wrote, On 01/31/10 09:43: > I think option vi-tabcomplete is pdksh, not real ksh. I don't know what > shell uses option tabcomplete. > > AFAIK, real ksh will do tab completion in either emacs or vi editing mode. > (I don't > use tab completion myself, 'cause I'm faster without such things). > > I don't think you need to do anything to get history (in bash, I think you > need to > set HISTFILE, but in ksh, if it isn't set, it should use $HOME/.sh_history). > > In vi editing mode, an escape followed by a "k" (vi cursor up command) will > move > backward to the previous command, escape followed by a / and then some > characters > would search for those characters, etc. > > If you're not used to using vi, you may find you prefer emacs mode - it's > more like > DOS command line editing, since it doesn't have a separate command and input > mode. > > >> Thanks you very much for the tips; >> The .KSHRC is set up in this way >> bash-3.00$ more .kshrc >> set -o tabcomplete >> set -o viraw >> _TAB_Complete=1 >> >> he .profile file is configured as >> # This is the default standard profile provided >> to a user. >> # They are expected to edit it to meet their >> own needs. >> SHELL=/bin/ksh >> set -o vi-tabcomplete >> set -o vi >> set -o viraw >> MAIL=/usr/mail/${LOGNAME:?} >> >> how can i set the TAB completation and the history >> things? >>