An open API service indexing awesome lists of open source software.

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.

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'`