Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wookayin/vim-autoimport
A vim plugin for adding import statements (for python and more) without LSP
https://github.com/wookayin/vim-autoimport
auto-import neovim nvim python vim
Last synced: 2 months ago
JSON representation
A vim plugin for adding import statements (for python and more) without LSP
- Host: GitHub
- URL: https://github.com/wookayin/vim-autoimport
- Owner: wookayin
- Created: 2020-04-05T23:47:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-05T16:39:09.000Z (3 months ago)
- Last Synced: 2024-10-12T13:45:19.887Z (3 months ago)
- Topics: auto-import, neovim, nvim, python, vim
- Language: Python
- Homepage: https://work.in.progress
- Size: 80.1 KB
- Stars: 25
- Watchers: 3
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
vim-autoimport
==============A vim plugin for easily adding import statements.
*This is still WIP* --- things might change rapidly.
Usage
-----Currently only works **for python**. You need to have `has('python3')` enabled.
Commands:
```vim
:ImportSymbol " Add an import statement for the current symbol
:ImportSymbol np.zeros " Add an import statement for the given expression (e.g. np.zeros)
```Recommended keymappings:
```vim
nmap :ImportSymbol
imap :ImportSymbola
```Tip: How to sort imports?
```vim
command! -buffer ImportOrganize :CocCommand python.sortImports
```License
-------The MIT License (c) 2020 Jongwook Choi (@wookayin)