Ayoub890 wrote: > Hi, > I want to use readline in vi mode but support for vi appears to be > rather limited. It has better support for emacs and I do not want to go > back to using emacs. > Because of its limited support for vi, I want to try and circumvent the > readline and open the command history file directly with VIM. I am using > several xwindows but my login directory has only one ".bash_history" > file. Each of the xwindows sessions should have its own history but I > found only one history file in the login directory. Where are the other > history files kept? Can I open them with VIM and grab commands and edit > them and thus not be limited by the inadequate readline support for vi? > > Thanx, > > Ayoub890 > > > There is only one history file. What happens is that you end up with the same file being opened more then once. I am not sure what copy gets written to disk, but I think it is the first one opened. The other with the other coppies, they are in memory, but the disk file has not been updated. I was never interested enough to play around and find out what happens if you log out of the first secession, while you still have a second secession open, or what happens with the history of the second secession when you log out. Something for you to play with...
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 ____________________________________________________
