inoremap
inoremap
inoremap
inoremap
noremap
The code you have posted should not disable history navigation in command line mode, are you sure you don't have cnoremap <Up> <Nop>
or noremap! <Up> <Nop>
somewhere? Try verbose cmap <Up>
it should show you whether <Up>
key is redefined for command line mode.
If when saying «command bar» you meant command-line window, you could try the following:
nnoremap <expr> <Up> ((bufname("%") is# "[Command Line]")?("\<Up>"):(""))