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 <Bar>:
|
<Bar>
nnoremap <Leader>\ <C-W><Bar>
The relevant documentation is at :h map_bar.