Skip to content

robertbasic/vim-pyqt5-importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

map <leader>pi :PyQt5ImportClass<cr>

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.

" Force loading python3
if has('python3')
endif

NOTE: this can break plugins

A JSON dump file created by 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:

Plug 'robertbasic/vim-pyqt5-importer'

About

A VIM plugin to help with importing PyQt5 classes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published