[root@aixtest]/root # echo $SHELL ksh93 [root@aixtest]/root # grep EDITOR .profile .profile:export EDITOR=vi
Here is exmaple of shorcuts using in shell when EDITOR is vi (or: set -o vi)
    [ESC]+j : go to next command
    [ESC]+k : go to previous command
    [ESC]+l : go to the next character on the right
    [ESC]+h : go to the next character on the left
    [ESC]+/ : search a word through the command line history, hit « n » to continue the search, or « enter » to edit the line you wish to use
    [ESC]+w : go to the first letter of the next word
    [ESC]+e : go to the last letter of the current word
    [ESC]+cw : change the rest of the word, starting from the current position
    
    [ESC]+dw : delete the rest of the word
    [ESC]+0 : go to the first character of the line
    [ESC]+$ : go to the last character of the line