Possible problem with VISUAL=vi (vim & bash)
dist: Core Linux
shell: bash
uname: Linux 2.6.11.7 SMP i686
editor: vi symbollically linked to vim
Hi There,
I'm trying to make it that my shell command line editing uses vi mode. I've used Solaris and AIX but I am new to Linux.
From editing .profile and adding:
export VISUAL=vi
i expected that at my command prompt:
$
I would be able to press [ESC] and then scroll through the history with j,k and edit the lines with vi commands like dw and, more importantly, search for a shell command in the history with /.
I've made the modification above but it doesn't work. I think that I'm either doing it incorrectly (perhaps I have to use ksh?) or I need to reset my expectations!
Thanks muchly for any advice.
|