Ayoub890 wrote: > This came from Gary Johnson: > >> From the shell, the fc command will open a $VISUAL or $EDITOR window > > (I forget which--I have both set to vi which really points to vim) > containing the last shell command you executed. You can then execute > > :r !history > > to load the last n lines of command history into the vim buffer, edit > the buffer to get the command you want, then write the buffer and quit > vim and the shell will execute the command. > > HTH, > Gary > >From the Bash manual: Bash attempts to invoke $FCEDIT, $EDITOR, and emacs as the editor, in that order.
Mikkel -- Do not meddle in the affairs of dragons, for thou art crunchy and taste good with Ketchup!
____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________
