I am working on a Python project using Vim with YouCompleteMe code completion. The thing is most of the docstrings don't fit in the preview window. Is it possible to increase the preview window height or navigate through it?
Asked
Active
Viewed 2,300 times
1
-
1`:help preview-window`. – romainl Dec 07 '15 at 12:24
-
@romainl thanks! `previewheight` was the option I was looking for! – jarandaf Dec 07 '15 at 12:33
-
Can any of you add correct comment as an answer ? – Xavier T. Dec 07 '15 at 13:33
-
1Is it possible to scroll the window while it's open, in insert mode, without dismissing it? – BallpointBen Jul 28 '18 at 06:06
-
@BallpointBen Seems you need a plugin for that functionality. See [vim-preview](https://vimawesome.com/plugin/vim-preview-care-of-itself) which introduces the command `:PreviewScroll` that you can keymap to insert mode. – RTbecard Nov 22 '20 at 19:43
1 Answers
1
You can find all the info you need on the preview window in:
:help preview-window
Take a look at the previewheight
option:
:help 'previewheight'

romainl
- 186,200
- 21
- 280
- 313