Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ How to use the tab in Vim carried Python code completion     - Puppet centralized configuration management system (Server)

- Online booking shocking information leakage risk, you dare book the tickets online? (Linux)

- Java synchronization mechanism: synchronized, wait, notify (Programming)

- How to manage start-up applications in Ubuntu (Linux)

- RedHat Redis Linux installation (Database)

- Linux Tutorial Share: How to sudo command to define the PATH environment variable (Linux)

- learning Linux ls command examples (Linux)

- CentOS NAT iptables (Linux)

- Qt for file splitting and fusion gadgets (Programming)

- Ubuntu Backup and Recovery (Linux)

- Java uses JDBC connect database (Programming)

- Circular list of Java programming (Programming)

- Linux use glibc2 library and crypt () function to generate the user password (Programming)

- Android source code compiled fatal error solutions (Programming)

- Linux find command usage practices (Linux)

- Python is not C (Programming)

- Gitolite how to import other Git repositories (Server)

- Detailed installation OpenCV2.3.1 under CentOS 6.5 (Linux)

- Linux batch copy data script (Linux)

- 10 tips daily Docker (Server)

  How to use the tab in Vim carried Python code completion
  Add Date : 2018-11-21      
  Pydiction allows you to achieve TAB code completion in Vim, you can fill the whole contents include: standard, custom, and third-party modules and packages. Plus keywords, BIFs, and strings.
Pydiction by the three main files:
• python_pydiction.vim - This file is a Vim plugin file to achieve Python file TAB completion.
• complete-dict - This file is a Vim dictionary file, which contains Python keywords and modular structure and other information. Reference file plugin performed completion are looking for.
• pydiction.py - (Optional) This file is Python script files used to generate the dictionary file. You can add more modules can TAB completion by executing the script.

      Key input portion Python module name, the name of the property or method in Vim, and then press the Tab key to bring up the full complement of information.
For example, enter
Will pop up
        os.pathconf (
        os.pipe (

      If you find complete results obtained in the TAB menu is not what you want, a possible reason is that you do not set Vim to ignore case. By: setting mode "set noic".

how to install:
      In UNIX / LINUX under the python_pydiction.vim into ~ / .vim / after / ftplugin /, if the directory does not exist, manually create, Vim will automatically go to the directory to find the relevant documents. Do not put other files in addition to python_pydiction.vim placed in the directory.

Add the following fields in your vimrc file to enable ftplugins:
        filetype plugin on
Then be sure to set "g: pydiction_location" point to the full path of the file you put complete-dict where, for example,
        let g: pydiction_location = 'C: / vim / vimfiles / ftplugin / pydiction / complete-dict'

Internet was to make the following settings can refer to

# Unzip pydiction-1.2.zip
# Cp python_pydiction.vim / usr / share / vim / vim70 / ftplugin
# Mkdir / usr / share / vim / vim70 / pydiction
# Cp complete-dict pydiction.py / usr / share / vim / vim70 / pydiction /
# Vi ~ / .vimrc
# increase
let g: pydiction_location = '/ usr / share / vim / vim70 / pydiction / complete-dict'
let g: pydiction_menu_height = 20

Open the python script file when writing python program, press the TAB key to activate auto-complete menu.
- Vi / Vim prompt solutions do not have permission to save time (Linux)
- DB2 Version SQLJ to access Oracle Server (Database)
- Zabbix monitors the status of TCP connections (Server)
- To install MySQL 5.6 binary packages under CentOS 6.4 64bit (Database)
- Linux firewall to prevent external network attacks (Linux)
- Install Apache streaming media services on CentOS 6.4 (Server)
- Do not enter password login ssh (Server)
- Java objects are taking up much space (Programming)
- Linux kernel socket protocol stack routing lookup cache mechanism (Linux)
- How to upgrade Docker 1.6 on Fedora / CentOS (Server)
- Android thread mechanism --AsyncTask (Programming)
- Iptables in Ubuntu (Linux)
- 10 important Linux ps command combat (Linux)
- Do not find ifconfig eth0 and IP address under CentOS6.5 (Linux)
- Using C / C ++ extensions Python (Programming)
- Setup Qt development environment under Linux (Linux)
- You need to know 12 Git High Command (Linux)
- HAProxy performance under high concurrency (Server)
- Distributed Firewall Design on Linux platform (Linux)
- The callback function used in C ++ (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.