Split command history into command and search history.

Allow special history also for :open and :tabopen commands.