Trying to map horizontal maximize to something two keystrokes less, but none of these works:
nnoremap \\ | \" Maximize horizontally
The bar character | is a command separator in Vim script. To use it in a mapping, use :
|
nnoremap \
The relevant documentation is at :h map_bar.