gI indents entire buffer
a\ is a text object for current LaTeX environment
C-p and C-n behave like a 'normal' terminal

bring up the previous or next command