https://github.com/robertbasic/vim-pyqt5-importer
A VIM plugin to help with importing PyQt5 classes.
https://github.com/robertbasic/vim-pyqt5-importer
Last synced: 11 months ago
JSON representation
A VIM plugin to help with importing PyQt5 classes.
- Host: GitHub
- URL: https://github.com/robertbasic/vim-pyqt5-importer
- Owner: robertbasic
- License: other
- Created: 2017-01-10T14:16:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-10T15:15:50.000Z (about 9 years ago)
- Last Synced: 2025-02-18T10:12:59.920Z (12 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
vim-pyqt5-importer
==================
A VIM plugin to help with importing PyQt5 classes.
Usage
=====
Call `:PyQt5ImportClass` over a word that represents a PyQt5 class.
Map it to a leader shortcut, for example:
``` vim
map pi :PyQt5ImportClass
```
Requirements
============
VIM must be compiled with Python3 support.
Add the following to the top of your `.vimrc` file, so VIM is "tricked" in using Python3.
``` vim
" Force loading python3
if has('python3')
endif
```
NOTE: this can break plugins
A JSON dump file created by [pyqt5-dumper](https://github.com/robertbasic/pyqt5-dumper).
Put that JSON file somewhere and do a `let g:pyqt5importer_pyqt5_json_path="/path/to/dump.json"` to tell the plugin where the JSON file is.
By default it will look for it in `~/.vim/pyqt5.json`.
Installation
============
Using [vim-plug](https://github.com/junegunn/vim-plug):
`Plug 'robertbasic/vim-pyqt5-importer'`