zoukankan      html  css  js  c++  java
  • Linux VIM python 自动补全插件:pydiction

    Pydiction不需要安装,所有没有任何依赖包问题,Pydiction主要包含三个文件。

    python_pydiction.vim  -- Vim plugin that autocompletes Python code.
    complete-dict         -- Dictionary file of Python keywords, modules, etc.
    pydiction.py          -- Python script to add more words to complete-dict.

    下载Pydiction

    mkdir ~/.vim
    mkidr ~/.vim/bundle
    cd ~/.vim/bundle
    #这里我们也可以自己下载好上传到linux系统中
    git clone https://github.com/rkulla/pydiction.git

    配置Pydiction

    #- UNIX/LINUX/OSX: Put python_pydiction.vim in ~/.vim/after/ftplugin/
    #- WINDOWS: Put python_pydiction.vim in C:vimvimfilesftplugin
    # Assuming you installed Vim to C:vim
    cp -r ~/.vim/bundle/pydiction/after/ ~/.vim

    新建.vimrc文件

    vim ~/.vimrc

    在.vimrc文件添加如下配置:

    filetype plugin on
    let g:pydiction_location = '/home/pi/.vim/bundle/pydiction/complete-dict'
    let g:pydiction_menu_height = 3

    到此已经可以使用Tab键自动补全python代码了。 

  • 相关阅读:
    Python 函数 之 目录
    python---------匿名函数
    python-------递归函数
    python-----内置函数
    hibernate.cfg.xml
    struts2 工作原理
    拦截器
    js制作 子菜单
    struts---最简单实例步骤
    常用标签---地址----
  • 原文地址:https://www.cnblogs.com/lmh001/p/10000984.html
Copyright © 2011-2022 走看看