How can I disable scratch preview window?

前端 未结 2 1905
你的背包
你的背包 2020-12-30 20:46

While coding Python, I like Vim\'s omnicompletion function, but I don\'t want Scratch Window to pop up at top.

How can I disable it?

(I\'m using gVim 7.3)

相关标签:
2条回答
  • 2020-12-30 21:08

    This behavior is defined by the presence of preview in the value of the 'completeopt' option.

    The default value is:

    menu,preview
    

    To remove preview, simply add this line to your ~/.vimrc or modify an existing completeopt line:

    set completeopt-=preview
    
    0 讨论(0)
  • 2020-12-30 21:23

    If you don't mind the preview window too much, but want to easily close it, you can use the :pclose command or CTRL-W z keyboard combination see :help :pclose.

    0 讨论(0)
提交回复
热议问题