Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phillipberndt/python-imports.vim
A VIM plugin to manage Python import statements
https://github.com/phillipberndt/python-imports.vim
Last synced: 20 days ago
JSON representation
A VIM plugin to manage Python import statements
- Host: GitHub
- URL: https://github.com/phillipberndt/python-imports.vim
- Owner: phillipberndt
- Created: 2012-04-10T15:09:04.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-29T11:55:39.000Z (almost 12 years ago)
- Last Synced: 2024-10-04T22:12:33.305Z (about 1 month ago)
- Language: VimL
- Homepage: http://vim.sourceforge.net/scripts/script.php?script_id=4007
- Size: 108 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.mediawiki
Awesome Lists containing this project
README
== python-imports.vim ==
This VIM plugin automates the insertion of
import
statements at the top of a file.=== Example usage ===
In an empty file, type
sys.exit(1)
Place the cursor over the function call and press Strg + f. The plugin will insert the statement
import sys
above this line.It checks if the module was already imported and tries to maintain the import
statements at the file's top in order.See [http://vim.sourceforge.net/scripts/script.php?script_id=4007 the VIM homepage] for further information.