Ubuntu Configuration Vim Editor

Source: Internet
Author: User

Pydiction is used to implement the code completion and syntax hints function. Pydiction cannot be installed via apt and needs to be downloaded and installed by itself.

git clone https://github.com/rkulla/pydiction #https://github.com/ma6174/vim look at someone.

Pydiction allows vim to automatically complement Python code, whether it's a keyword, a standard library, or a third-party library. It consists mainly of 3 files:

Python_pydiction.vim:vim plugin file. Complete-dict: A dictionary file that contains the Python keywords and modules. The content referenced by the plug-in is derived from this. pydiction.py: A PY script that runs this file can add new modules to the Complete-dict dictionary.

Linux/unix System:

[email protected]:~$ tree-l 4 ~/.vim/after/                                                                                                                         /home/mologa/.vim/after/                                                                                                                                ├──complete-dict                                                                                                                                     ├──ftplugin │  └──pyt                                                                                                                     Hon_pydiction.vim                                                                                                                                       ├──plugin                                                                                 │  └──snipmate.vim                                            └──pydiction.py  

Vim Install plugin EQ:

1. First write the plugin you want to install into ~/.VIMRC 2. Open Vim, if you have a plugin that is not installed in VIMRC, it will prompt! 3. ':P Lugininstall ' Enter to wait for installation    echo "Plugin ' Valloric/youcompleteme '" >>~/.VIMRC     open Vim---  : Plugininstall    After the installation is complete, the directory generates files ~/.vim/vundle/youcompleteme the    path to add the configuration file in ~/.VIMRC let G:ycm_global_ycm_extra_ conf= ' ~/.vim/bundle/youcompleteme/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py '

But I didn't use ' youcompleteme ' and it took too long, so I chose to install ' Pydiction ' later.

Reference: Http://www.cnblogs.com/Suzzz

Ubuntu Configuration Vim Editor

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.