Skip to content

timitoc/vim-python-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Example usage:

Importing a module

You can only import a module:

math

Running <leader>i on that line will turn it into:

import math

Importing stuff from a module

Write what you want to import like this:

math/pi,sqrt,log

Running <leader>i on that line will turn it into:

from math import pi, sqrt, log

Import with a different name

Use module:alias syntax

numpy:np

Running <leader>i on that line will turn it into:

import numpy as np

About

Smarter imports for your Python code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published