sponsor Vim development Vim logo Vim Book Ad

vim-isort : sort python imports using the isort lib

 script karma  Rating 9/5, Downloaded by 387    Comments, bugs, improvements  Vim wiki

created by
Juan Pedro Fisanotti
script type
Plugin to sort python imports using the isort lib.

Just call the :Isort command, and it will reorder the imports of the current python file.
You can also configure isort options, check them on the isort docs.

Official repo:
install details
Recommended installation method is to use a plugin manager, like Vundle or Pathogen (pointing to the oficial repo). But you could manually extract the files from this plugin in your .vim folder.
You will need a vim compiled with python support, and this dependency installed on your system:

sudo pip install isort

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-isort.tar.gz 27a890 2015-11-08 7.0 Juan Pedro Fisanotti - Doc change
- Fixed crash when no isort module installed (now it just warns the user)
vim-isort.tar.gz 561c6c 2015-01-27 7.0 Juan Pedro Fisanotti Small fix to add compatibility with older versions of vim's python interpreter.
vim-isort.tar.gz f9fe7c 2014-01-31 7.0 Juan Pedro Fisanotti - Removed python files, they are now dependencies
- Fixed issue with empty lines at the end of files
- Added python3 compatibility, for people with vim compiled with +python3 and without +python
vim-isort.tar.gz de4e83 2013-11-20 7.0 Juan Pedro Fisanotti added visual mode sorting, configurable mappings, and removed the pip dependencies
vim-isort.tar.gz cc07c9 2013-10-03 7.0 Juan Pedro Fisanotti Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo