I'm not entirely sure about this. It does help a lot for not giving
focus to the ycm doc window. But it also prevents focusing the fugitive
status window. It can still be reached with <leader>gs though.
Maybe this needs a function that checks what the content of the preview
window is and skip conditionally.
map <F1> :ls<CR>:b<space>
-" move between windows
-nnoremap <C-L> <C-W>w
-nnoremap <C-H> <C-W>W
+" move between windows (skip previewwindow)
+nnoremap <silent> <C-L> <C-W>w:if &previewwindow \| wincmd w \| endif<CR>
+nnoremap <silent> <C-H> <C-W>W:if &previewwindow \| wincmd W \| endif<CR>
"xterm mouse with middleclick paste
nnoremap <MiddleMouse> i<MiddleMouse>