Is it possible to setup vim to open all preview windows on a specific location. I want them to open on the right side.
You could try adding the following to your vimrc:
augroup previewWindowPosition au! autocmd BufWinEnter * call PreviewWindowPosition() augroup END function! PreviewWindowPosition() if &previewwindow wincmd L endif endfunction
Unfortunately it is not possible to set the preview window size from the quickfix file type plugin -- probably because the cursor doesn't stay on that window.
This approach will trigger for every window (see
BufWinEnter), thus it will add a little overhead.