V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
inevermore
V2EX  ›  Python

vim 的 Python-mode 插件,如何设置使得在代码补全时不显示详细信息呢?

  •  
  •   inevermore · 2015-01-22 23:25:35 +08:00 · 4250 次点击
    这是一个创建于 3353 天前的主题,其中的信息可能已经有所发展或是发生改变。
    总是弹出窗口,很烦人,如果去掉呢? 打算以后写Python都用vim了。
    7 条回复    2015-01-23 15:23:02 +08:00
    crazyxin1988
        1
    crazyxin1988  
       2015-01-22 23:31:56 +08:00   ❤️ 1
    set completeopt-=preview
    let g:ycm_add_preview_to_completeopt = 0
    自动也一起提示关闭了
    用YouCompleteMe 更强大一些
    esyed
        2
    esyed  
       2015-01-23 00:00:43 +08:00
    为何要用vim?
    vinceguo
        3
    vinceguo  
       2015-01-23 00:04:42 +08:00
    游标处弹窗还好吧,是上面那个preview窗口持续存在有点蛋疼吧
    下面是我前几天谷歌到的:
    utocmd CursorMovedI * if pumvisible() == 0|pclose|endif
    autocmd InsertLeave * if pumvisible() == 0|pclose|endif
    inevermore
        4
    inevermore  
    OP
       2015-01-23 09:36:47 +08:00
    @esyed 快啊,可以自己配置很多代码补全规则啊。
    latteczy
        5
    latteczy  
       2015-01-23 10:28:50 +08:00
    楼主不觉得pymode的补全提示特别慢吗?
    inevermore
        6
    inevermore  
    OP
       2015-01-23 11:22:41 +08:00
    @latteczy 请给推荐个,其实我就想找个自动提示的,像sublime那样就可以了,不强求智能补全。。
    latteczy
        7
    latteczy  
       2015-01-23 15:23:02 +08:00
    @inevermore github上有个k-vim,中国人写的,功能很全面,你可以试试
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5435 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 08:43 · PVG 16:43 · LAX 01:43 · JFK 04:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.