Added vi mode to shell.