sponsor Vim development Vim logo Vim Book Ad

vim-isort : sort python imports using the isort lib

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

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

Usage:
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:
https://github.com/fisadev/vim-isort
 
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 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: 54.237.153.141

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