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代码了。 

  • 相关阅读:
    Spring cloud学习总结
    Spring boot学习笔记
    Rabbitmq安装步骤
    Mongodb 笔记采坑
    Rabbit Docker 部署及采坑
    各种知识汇总
    Echart 随便写的
    Linux常用命令
    Redis学习笔记
    Docker使用总结
  • 原文地址:https://www.cnblogs.com/lmh001/p/10000984.html
Copyright © 2011-2022 走看看