map <F1> :ls<CR>:b<space>
" 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>
+nnoremap <silent> <C-L> <C-W>w<C-W>:if &previewwindow \| wincmd w \| endif<CR>
+nnoremap <silent> <C-H> <C-W>W<C-W>:if &previewwindow \| wincmd W \| endif<CR>
+tnoremap <silent> <C-L> <C-W>w<C-W>:if &previewwindow \| wincmd w \| endif<CR>
+tnoremap <silent> <C-H> <C-W>W<C-W>:if &previewwindow \| wincmd W \| endif<CR>
"xterm mouse with middleclick paste
nnoremap <MiddleMouse> i<MiddleMouse>