Using plugin YouCompleteMe, I get useful previews of entries. However, if the cursor is near the end of the line, the list gets out of sight. Screenshots below; the latter with
The only way I've found to get around this, is to resize the window temporarily so that it will be wide enough to show the preview, or move the cursor to the left in the line, as in the screenshot below.
Is there any way to tell vim, that n characters of preview should always be shown, and if the completion list "disappears outside the window", it should shift it to accommodate n? (n=20 might be a suitable number for me.)