https://github.com/phillipberndt/python-imports.vim
A VIM plugin to manage Python import statements
https://github.com/phillipberndt/python-imports.vim
Last synced: 5 months 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 (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-01-29T11:55:39.000Z (almost 13 years ago)
- Last Synced: 2025-03-31T00:17:37.104Z (10 months ago)
- Language: VimL
- Homepage: http://vim.sourceforge.net/scripts/script.php?script_id=4007
- Size: 108 KB
- Stars: 6
- Watchers: 2
- 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.